diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-09-12 19:41:40 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-09-12 19:41:40 +0000 |
commit | f56972e22489c92028e5147344ab8b31b0b4fed5 (patch) | |
tree | 1b8db08c4b4b7c9af60308554e38e84655330228 /libcxx/include/atomic | |
parent | 956ff0f8bf8c0eaea965056fb97a2a592ebdd1d0 (diff) | |
download | llvm-f56972e22489c92028e5147344ab8b31b0b4fed5.tar.gz |
Implement the infrastructure for feature-test macros. Very few actual feature test macros, though. Reviewed as: https://reviews.llvm.org/D51955
llvm-svn: 342073
Diffstat (limited to 'libcxx/include/atomic')
-rw-r--r-- | libcxx/include/atomic | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libcxx/include/atomic b/libcxx/include/atomic index 809f78a06d36..d37e7b4b035c 100644 --- a/libcxx/include/atomic +++ b/libcxx/include/atomic @@ -544,6 +544,7 @@ void atomic_signal_fence(memory_order m) noexcept; #include <cstddef> #include <cstdint> #include <type_traits> +#include <version> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header @@ -559,10 +560,6 @@ void atomic_signal_fence(memory_order m) noexcept; #error C++ standard library is incompatible with <stdatomic.h> #endif -#if _LIBCPP_STD_VER > 14 -# define __cpp_lib_atomic_is_always_lock_free 201603L -#endif - #define _LIBCPP_CHECK_STORE_MEMORY_ORDER(__m) \ _LIBCPP_DIAGNOSE_WARNING(__m == memory_order_consume || \ __m == memory_order_acquire || \ |