[libc++] Fix a few warnings
Found during a NuttX porting effort.
But these changes are not directly relevant to NuttX.
Differential Revision: https://reviews.llvm.org/D90139
GitOrigin-RevId: acd7be74ca12f8f08e52d6d80850a9b230109134
diff --git a/src/locale.cpp b/src/locale.cpp
index b918088..02dbb33 100644
--- a/src/locale.cpp
+++ b/src/locale.cpp
@@ -1149,7 +1149,7 @@
{
return _LIBCPP_GET_C_LOCALE->__ctype_toupper;
}
-#elif __NetBSD__
+#elif defined(__NetBSD__)
const short*
ctype<char>::__classic_lower_table() _NOEXCEPT
{