[libcxx-commits] [libcxx] [libc++](NFC) fix wrong __has_include (PR #141328)
Tomohiro Kashiwada via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 23 20:31:54 PDT 2025
https://github.com/kikairoya created https://github.com/llvm/llvm-project/pull/141328
The parameter passed to __has_include has to be quoted by `<>` or `"`, not both.
>From a35faecabbc18d9ee15a7d7058efc2ee5595be7f Mon Sep 17 00:00:00 2001
From: kikairoya <kikairoya at gmail.com>
Date: Sat, 24 May 2025 12:22:43 +0900
Subject: [PATCH] [libc++](NFC) fix wrong __has_include
The parameter passed to __has_include has to be quoted by `<>` or `"`, not both.
---
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 d981d137cf1ba..c15ce54fae23a 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -34,7 +34,7 @@
# define _CTYPE_DISABLE_MACROS
#endif
-#if __has_include("<langinfo.h>")
+#if __has_include(<langinfo.h>)
# include <langinfo.h>
#endif
More information about the libcxx-commits
mailing list