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

Joseph Huber via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 30 06:46:11 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
----------------
jhuber6 wrote:

I was following what the other targets do, but I could replace it with a has include if needed.

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


More information about the libcxx-commits mailing list