Closed peterjc123 closed 3 years ago
According to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019, __STDC_VERSION__ is defined as 201112L when C++11 is enabled. But it doesn't provide stdatomic.h so let's disable this code path.
__STDC_VERSION__
201112L
C++11
stdatomic.h
Clang-cl defines _MSC_VER and does include stdatomic.h, so the right guard is && (!defined(_MSC_VER) || defined(__clang__))
_MSC_VER
&& (!defined(_MSC_VER) || defined(__clang__))
@Maratyszcza Sounds reasonable.
@Maratyszcza Fixed.
According to https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019,
__STDC_VERSION__
is defined as201112L
whenC++11
is enabled. But it doesn't providestdatomic.h
so let's disable this code path.