[libcxx-commits] [libcxx] [libc++](NFC) fix wrong __has_include (PR #141328)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 23 20:32:26 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Tomohiro Kashiwada (kikairoya)

<details>
<summary>Changes</summary>

The parameter passed to __has_include has to be quoted by `<>` or `"`, not both.

---
Full diff: https://github.com/llvm/llvm-project/pull/141328.diff


1 Files Affected:

- (modified) libcxx/src/locale.cpp (+1-1) 


``````````diff
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
 

``````````

</details>


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


More information about the libcxx-commits mailing list