summaryrefslogtreecommitdiffstats
path: root/libcxx/src/include
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-02-06 05:26:49 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-02-06 05:26:49 +0000
commitbcc85cbcde661e8bf02a5e0c385f9aa509a8dc39 (patch)
treee288d8a3385f0e4ff95295b335db1568533fd9ab /libcxx/src/include
parent5d9ecd23e8b7e84376d8361a49b6e6b923a623f5 (diff)
downloadbcm5719-llvm-bcc85cbcde661e8bf02a5e0c385f9aa509a8dc39.tar.gz
bcm5719-llvm-bcc85cbcde661e8bf02a5e0c385f9aa509a8dc39.zip
Refer to _LIBCPP_MSVC macro where applicable
Replace preprocess conditions of defined(_MSC_VER) && !defined(__clang__) with defined(_LIBCPP_MSVC). NFC. Patch by Dave Lee! llvm-svn: 294171
Diffstat (limited to 'libcxx/src/include')
-rw-r--r--libcxx/src/include/atomic_support.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/include/atomic_support.h b/libcxx/src/include/atomic_support.h
index af0f5f505ea..378541b2325 100644
--- a/libcxx/src/include/atomic_support.h
+++ b/libcxx/src/include/atomic_support.h
@@ -29,7 +29,7 @@
#endif
#if !defined(_LIBCPP_HAS_ATOMIC_BUILTINS) && !defined(_LIBCPP_HAS_NO_THREADS)
-# if defined(_MSC_VER) && !defined(__clang__)
+# if defined(_LIBCPP_MSVC)
_LIBCPP_WARNING("Building libc++ without __atomic builtins is unsupported")
# else
# warning Building libc++ without __atomic builtins is unsupported
OpenPOWER on IntegriCloud