Skip to content

Commit def1139

Browse files
committed
Handle AIX
1 parent 91ea91e commit def1139

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libcxx/include/__config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,8 @@ typedef __char32_t char32_t;
10241024
//
10251025
// picolibc 1.8.9 and newer declare the two functions unconditionally.
10261026
//
1027-
// Microsoft C Runtime and Apple C library do not yet support these functions.
1027+
// Microsoft C Runtime, Apple C library and AIX C library do not yet support
1028+
// these functions.
10281029
# if defined(_LIBCPP_GLIBC_PREREQ)
10291030
# if defined(__cpp_char8_t) && _LIBCPP_GLIBC_PREREQ(2, 36)
10301031
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 1
@@ -1037,7 +1038,7 @@ typedef __char32_t char32_t;
10371038
# else
10381039
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 0
10391040
# endif
1040-
# elif defined(__APPLE__) || defined(_MSC_VER)
1041+
# elif defined(__APPLE__) || defined(_MSC_VER) || defined(_AIX)
10411042
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 0
10421043
# else
10431044
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 1

0 commit comments

Comments
 (0)