[libcxx-commits] [libcxx] dafbfb1 - [libcxx] Fix a case of -Wundef warnings. NFC.

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 7 01:16:12 PDT 2021


Author: Martin Storsjö
Date: 2021-05-07T11:16:01+03:00
New Revision: dafbfb1d1d8e01beac3704aea4e8df45260a6310

URL: https://github.com/llvm/llvm-project/commit/dafbfb1d1d8e01beac3704aea4e8df45260a6310
DIFF: https://github.com/llvm/llvm-project/commit/dafbfb1d1d8e01beac3704aea4e8df45260a6310.diff

LOG: [libcxx] Fix a case of -Wundef warnings. NFC.

Differential Revision: https://reviews.llvm.org/D101978

Added: 
    

Modified: 
    libcxx/src/locale.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index e352a3462d0e4..903c78a1bde98 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -1139,7 +1139,7 @@ ctype<char>::classic_table() noexcept
     return _C_ctype_tab_ + 1;
 #elif defined(__GLIBC__)
     return _LIBCPP_GET_C_LOCALE->__ctype_b;
-#elif __sun__
+#elif defined(__sun__)
     return __ctype_mask;
 #elif defined(_LIBCPP_MSVCRT) || defined(__MINGW32__)
     return __pctype_func();


        


More information about the libcxx-commits mailing list