Fix PR38160 - init_priority attribute not supported by GCC on Apple.
authorEric Fiselier <eric@efcs.ca>
Mon, 16 Jul 2018 20:01:59 +0000 (20:01 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 16 Jul 2018 20:01:59 +0000 (20:01 +0000)
commit241d4ad761302695a500fa62d58eeb8aaf72d95f
tree5be59a6b5c501883b6076d33a02478341f4b0796
parentc7f8ac7896cf4147adca21220e7c4599bcee5743
Fix PR38160 - init_priority attribute not supported by GCC on Apple.

This patch guards the use of __attribute__((init_priority(101)))
within memory_resource.cpp when building with compilers that don't
support it. Specifically GCC on Apple platforms, and MSVC.

llvm-svn: 337205
libcxx/src/experimental/memory_resource.cpp