aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/ios.cpp2
-rw-r--r--libcxx/src/memory.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/ios.cpp b/libcxx/src/ios.cpp
index 0bd500b..06426c7 100644
--- a/libcxx/src/ios.cpp
+++ b/libcxx/src/ios.cpp
@@ -148,7 +148,7 @@ ios_base::getloc() const
}
// xalloc
-#if __has_feature(cxx_atomic) && !_LIBCPP_HAS_NO_THREADS
+#if __has_feature(cxx_atomic) && !defined(_LIBCPP_HAS_NO_THREADS)
atomic<int> ios_base::__xindex_ = ATOMIC_VAR_INIT(0);
#else
int ios_base::__xindex_ = 0;
diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp
index 31e823c..c56d031 100644
--- a/libcxx/src/memory.cpp
+++ b/libcxx/src/memory.cpp
@@ -121,7 +121,7 @@ __shared_weak_count::__get_deleter(const type_info&) const _NOEXCEPT
#endif // _LIBCPP_NO_RTTI
-#if __has_feature(cxx_atomic) && !_LIBCPP_HAS_NO_THREADS
+#if __has_feature(cxx_atomic) && !defined(_LIBCPP_HAS_NO_THREADS)
static const std::size_t __sp_mut_count = 16;
static pthread_mutex_t mut_back_imp[__sp_mut_count] =