[libcxx-commits] [PATCH] D101978: [libcxx] Fix a case of -Wundef warnings. NFC.

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 6 00:19:21 PDT 2021

mstorsjo created this revision.
Herald added subscribers: fedor.sergeev, krytarowski.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.

  rG LLVM Github Monorepo



Index: libcxx/src/locale.cpp
--- libcxx/src/locale.cpp
+++ libcxx/src/locale.cpp
@@ -1139,7 +1139,7 @@
     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();

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101978.343308.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210506/d1f8e5bb/attachment.bin>

More information about the libcxx-commits mailing list