Commit 9ee1f37b authored by Lynn Garren's avatar Lynn Garren
Browse files

make it work on Windows

parent 1177143b
2018-03-16 Lynn Garren <garren@fnal.gov>
* Utility/use_atomic.h, Utility/atomic_int.h:
Windows does not recognize the __cplusplus check
==============================
15.03.18 Release CLHEP-2.4.0.3
==============================
......
......@@ -8,17 +8,22 @@
// on macOS, atomic is available starting with Sierra (Darwin 16)
// ======================================================================
#if __cplusplus >= 201103L
#if USING_VISUAL
#include <atomic>
#define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
#else
#if __cplusplus >= 201103L
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || __clang__ || USING_VISUAL
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || __clang__
#include <atomic>
#define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
#else
#define CLHEP_ATOMIC_INT_TYPE int
#endif
#else
#define CLHEP_ATOMIC_INT_TYPE int
#else
#define CLHEP_ATOMIC_INT_TYPE int
#endif
#endif
#endif
......@@ -8,13 +8,18 @@
// on macOS, atomic is available starting with Sierra (Darwin 16)
// ======================================================================
#if __cplusplus >= 201103L
#if USING_VISUAL
#include <atomic>
#define CLHEP_USE_ATOMIC
#else
#if __cplusplus >= 201103L
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || __clang__ || USING_VISUAL
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || __clang__
#include <atomic>
#define CLHEP_USE_ATOMIC
#endif
#endif
#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