memory_resource still needs init_priority when built with GCC 4.9

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@280585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-09-03 07:05:40 +00:00
parent 766a31af3a
commit 5e5eb6348d

View File

@@ -72,10 +72,8 @@ union ResourceInitHelper {
// Only in C++11 is "init_priority" needed to ensure initialization order.
#if _LIBCPP_STD_VER > 11
_LIBCPP_SAFE_STATIC
#else
__attribute__((init_priority (101)))
#endif
ResourceInitHelper res_init;
ResourceInitHelper res_init __attribute__((init_priority (101)));
} // end namespace