File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 63
63
64
64
#if defined(ATOMIC_USE_SRT_SYNC_MUTEX) && (ATOMIC_USE_SRT_SYNC_MUTEX == 1)
65
65
// NOTE: Defined at the top level.
66
- #elif defined(__APPLE__) && (__cplusplus >= 201103L)
67
- // NOTE: Does support c++11 std::atomic, but the compiler may or
68
- // may not support GCC atomic intrinsics. So go ahead and use the
69
- // std::atomic implementation.
66
+ #elif __cplusplus >= 201103L
67
+ // NOTE: Prefer to use the c++11 std::atomic.
70
68
#define ATOMIC_USE_CPP11_ATOMIC
71
69
#elif (defined(__clang__) && defined(__clang_major__) && (__clang_major__ > 5)) \
72
70
|| defined(__xlc__)
98
96
#elif defined(_MSC_VER)
99
97
#define ATOMIC_USE_MSVC_INTRINSICS
100
98
#include " atomic_msvc.h"
101
- #elif __cplusplus >= 201103L
102
- #define ATOMIC_USE_CPP11_ATOMIC
103
99
#else
104
100
#error Unsupported compiler / system.
105
101
#endif
You can’t perform that action at this time.
0 commit comments