[llvm-branch-commits] [libcxx] release/19.x: [libc++] Add missing xlocale.h include on Apple and FreeBSD (#99689) (PR #100604)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 25 10:25:20 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport a55df237375e98cfc2520d5eb1a23b302ef02ba0
Requested by: @<!-- -->ldionne
---
Full diff: https://github.com/llvm/llvm-project/pull/100604.diff
1 Files Affected:
- (modified) libcxx/include/locale (+4)
``````````diff
diff --git a/libcxx/include/locale b/libcxx/include/locale
index dbec23a2c936d..573910a85bef5 100644
--- a/libcxx/include/locale
+++ b/libcxx/include/locale
@@ -232,6 +232,10 @@ template <class charT> class messages_byname;
# include <__locale_dir/locale_base_api/bsd_locale_fallbacks.h>
# endif
+# if defined(__APPLE__) || defined(__FreeBSD__)
+# include <xlocale.h>
+# endif
+
# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
# endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/100604
More information about the llvm-branch-commits
mailing list