[libcxx-commits] [libcxx] [libc++][z/OS] Move z/OS to new locale API and resolve all name collisions (PR #165428)

Xing Xue via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 12 11:05:39 PST 2025


================
@@ -121,13 +124,15 @@
 #    include <__locale_dir/support/fuchsia.h>
 #  elif defined(__linux__)
 #    include <__locale_dir/support/linux.h>
+#  elif defined(__MVS__)
+#    include <__locale_dir/support/zos.h>
 #  else
 
 // TODO: This is a temporary definition to bridge between the old way we defined the locale base API
 //       (by providing global non-reserved names) and the new API. As we move individual platforms
 //       towards the new way of defining the locale base API, this should disappear since each platform
 //       will define those directly.
-#    if defined(_AIX) || defined(__MVS__)
+#    if defined(_AIX)
----------------
xingxue-ibm wrote:

Posted PR [[libc++][AIX] Move to new locale APIs](https://github.com/llvm/llvm-project/pull/172068#top).

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


More information about the libcxx-commits mailing list