diff options
Diffstat (limited to 'contrib/libc++/include/ios')
-rw-r--r-- | contrib/libc++/include/ios | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libc++/include/ios b/contrib/libc++/include/ios index d95f18a..ff79998 100644 --- a/contrib/libc++/include/ios +++ b/contrib/libc++/include/ios @@ -216,7 +216,7 @@ storage-class-specifier const error_category& iostream_category() noexcept; #include <__locale> #include <system_error> -#if __has_feature(cxx_atomic) +#if __has_feature(cxx_atomic) && !defined(_LIBCPP_HAS_NO_THREADS) #include <atomic> // for __xindex_ #endif @@ -367,7 +367,7 @@ private: int* __index_; size_t __event_size_; size_t __event_cap_; -#if __has_feature(cxx_atomic) +#if __has_feature(cxx_atomic) && !defined(_LIBCPP_HAS_NO_THREADS) static atomic<int> __xindex_; #else static int __xindex_; |