[libcxx-commits] [libcxx] 11c3e65 - [libc++] Remove unused include caused by wrong __has_include (#141328)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 2 10:12:43 PDT 2025
Author: Tomohiro Kashiwada
Date: 2025-06-02T13:12:40-04:00
New Revision: 11c3e65e1d791f3de2d4b6fddf7f76eab3a8cd26
URL: https://github.com/llvm/llvm-project/commit/11c3e65e1d791f3de2d4b6fddf7f76eab3a8cd26
DIFF: https://github.com/llvm/llvm-project/commit/11c3e65e1d791f3de2d4b6fddf7f76eab3a8cd26.diff
LOG: [libc++] Remove unused include caused by wrong __has_include (#141328)
The parameter passed to __has_include has to be quoted by `<>` or `"`,
not both.
Added:
Modified:
libcxx/src/locale.cpp
Removed:
################################################################################
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index b3ec28950008a..30a7a54e1c016 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -34,10 +34,6 @@
# define _CTYPE_DISABLE_MACROS
#endif
-#if __has_include("<langinfo.h>")
-# include <langinfo.h>
-#endif
-
#include "include/atomic_support.h"
#include "include/sso_allocator.h"
More information about the libcxx-commits
mailing list