[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
Tue Oct 6 01:13:46 PDT 2026


================
@@ -25,6 +25,9 @@
 #  include <wctype.h>
 #endif
 
+// Forward declare for _XOPEN_SOURCE=500 and _XOPEN_SOURCE=600
+extern "C" locale_t __libcpp_aix_uselocale(locale_t) noexcept __asm__("uselocale");
----------------
philnik777 wrote:

Can we move this into the namespace instead? I don't think there is anything requiring us to declare this globally.

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


More information about the libcxx-commits mailing list