[libcxx-commits] [libcxx] [libcxx] Do not include `langinfo.h` when using the LLVM C library (PR #106634)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 30 06:45:08 PDT 2024


================
@@ -34,7 +34,8 @@
 #  define _CTYPE_DISABLE_MACROS
 #endif
 
-#if !defined(_LIBCPP_MSVCRT) && !defined(__MINGW32__) && !defined(__BIONIC__) && !defined(__NuttX__)
+#if !defined(_LIBCPP_MSVCRT) && !defined(__MINGW32__) && !defined(__BIONIC__) && !defined(__NuttX__) ||                \
+    defined(__LLVM_LIBC__)
 #  include <langinfo.h>
 #endif
----------------
ldionne wrote:

`#if __has_include`?

https://github.com/llvm/llvm-project/pull/106634


More information about the libcxx-commits mailing list