Address some post-commit review comments on r217261
llvm-svn: 217276
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: afe6794bc2ee35880e970e7e9fcde6c2ad72b51b
diff --git a/src/ios.cpp b/src/ios.cpp
index 0bd500b..06426c7 100644
--- a/src/ios.cpp
+++ b/src/ios.cpp
@@ -148,7 +148,7 @@
}
// 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;