[libcxx-commits] [libcxx] [AIX][libc++] Forward-declare locale functions in aix.h when _XOPEN_SOURCE < 700 (PR #220508)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 9 02:45:21 PDT 2026
================
@@ -25,6 +25,16 @@
# include <wctype.h>
#endif
+// Forward declare for _XOPEN_SOURCE=500 and _XOPEN_SOURCE=600
+#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 700
+extern "C" {
+locale_t newlocale(int, const char*, locale_t) noexcept;
----------------
philnik777 wrote:
Ah, yes, that would require modifications to the other locales as well, which is why it should be in a separate patch.
https://github.com/llvm/llvm-project/pull/220508
More information about the libcxx-commits
mailing list