Commit 5ec2d900 authored by Lynn Garren's avatar Lynn Garren
Browse files

allow atomic for WIN32

parent e29ee65e
2018-03-13 Lynn Garren <garren@fnal.gov>
* Utility/use_atomic.h: WIN32 supports atomic
* Utility/atomic_int.h: WIN32 supports atomic
==============================
15.02.18 Release CLHEP-2.4.0.2
==============================
......
......@@ -9,10 +9,11 @@
#if __cplusplus >= 201103L
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7)
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || WIN32
#include <atomic>
#define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
#elif __clang__
# on macOS, atomic is available starting with Sierra (Darwin 16)
#if __has_feature(c_atomic)
#include <atomic>
#define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
......
......@@ -9,10 +9,11 @@
#if __cplusplus >= 201103L
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7)
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || WIN32
#include <atomic>
#define CLHEP_USE_ATOMIC
#elif __clang__
# on macOS, atomic is available starting with Sierra (Darwin 16)
#if __has_feature(c_atomic)
#include <atomic>
#define CLHEP_USE_ATOMIC
......
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