From bcc85cbcde661e8bf02a5e0c385f9aa509a8dc39 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 6 Feb 2017 05:26:49 +0000 Subject: 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 --- libcxx/include/ext/hash_map | 2 +- libcxx/include/ext/hash_set | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libcxx/include/ext') diff --git a/libcxx/include/ext/hash_map b/libcxx/include/ext/hash_map index 8998bec66c3..fab36a155ba 100644 --- a/libcxx/include/ext/hash_map +++ b/libcxx/include/ext/hash_map @@ -207,7 +207,7 @@ template #include #if __DEPRECATED -#if defined(_MSC_VER) && ! defined(__clang__) +#if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("Use of the header is deprecated. Migrate to ") #else # warning Use of the header is deprecated. Migrate to diff --git a/libcxx/include/ext/hash_set b/libcxx/include/ext/hash_set index 7c6a8bf0ccc..916ed6910d7 100644 --- a/libcxx/include/ext/hash_set +++ b/libcxx/include/ext/hash_set @@ -199,7 +199,7 @@ template #include #if __DEPRECATED -#if defined(_MSC_VER) && ! defined(__clang__) +#if defined(_LIBCPP_MSVC) _LIBCPP_WARNING("Use of the header is deprecated. Migrate to ") #else # warning Use of the header is deprecated. Migrate to -- cgit v1.2.3