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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user