[libcxx-commits] [libcxx] [AIX][libc++] Fix redefinition of wchar_t overloads on AIX (PR #201432)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 9 06:39:36 PDT 2026


================
@@ -139,6 +139,8 @@ size_t wcsrtombs(char* restrict dst, const wchar_t** restrict src, size_t len,
 
 #    if _LIBCPP_HAS_WIDE_CHARACTERS
 #      if defined(__cplusplus) && !defined(_LIBCPP_WCHAR_H_HAS_CONST_OVERLOADS) && defined(_LIBCPP_PREFERRED_OVERLOAD)
+#        if defined(_AIX) && !defined(_LIBCPP_WCHAR_H_OVERLOADS)
----------------
Himadhith wrote:

Oh, then I'll just define this just for AIX and make this a 2 step process. 

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


More information about the libcxx-commits mailing list