From dafbfb1d1d8e01beac3704aea4e8df45260a6310 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Thu, 6 May 2021 10:18:41 +0300 Subject: [PATCH] [libcxx] Fix a case of -Wundef warnings. NFC. Differential Revision: https://reviews.llvm.org/D101978 --- libcxx/src/locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index e352a34..903c78a 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -1139,7 +1139,7 @@ ctype::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(); -- 2.7.4