diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-09-03 07:05:40 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-09-03 07:05:40 +0000 |
commit | 5e5eb6348d73a6d59c75beb1359977ac7b6f7b45 (patch) | |
tree | 10ebcee85b2d3a75af905f33a7088b6e444a03dc /src/experimental | |
parent | 766a31af3a366198261ad65d545492aec0969df2 (diff) | |
download | libcxx-5e5eb6348d73a6d59c75beb1359977ac7b6f7b45.tar.gz |
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
Diffstat (limited to 'src/experimental')
-rw-r--r-- | src/experimental/memory_resource.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/experimental/memory_resource.cpp b/src/experimental/memory_resource.cpp index c08805975..3e87a2ded 100644 --- a/src/experimental/memory_resource.cpp +++ b/src/experimental/memory_resource.cpp @@ -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 |