Commit 6c56d469 authored by Lynn Garren's avatar Lynn Garren
Browse files

AppleClang requires __has_extension(c_atomic)

parent d09594ab
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <atomic> #include <atomic>
#define CLHEP_ATOMIC_INT_TYPE std::atomic<int> #define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
#elif __clang__ #elif __clang__
#if __has_feature(c_atomic) #if __has_extension(c_atomic)
#include <atomic> #include <atomic>
#define CLHEP_ATOMIC_INT_TYPE std::atomic<int> #define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
#else #else
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <atomic> #include <atomic>
#define CLHEP_USE_ATOMIC #define CLHEP_USE_ATOMIC
#elif __clang__ #elif __clang__
#if __has_feature(c_atomic) #if __has_extension(c_atomic)
#include <atomic> #include <atomic>
#define CLHEP_USE_ATOMIC #define CLHEP_USE_ATOMIC
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment