Skip to content

Commit 5d7491a

Browse files
committed
Handle FreeBSD and Microsoft C Runtime library
1 parent def1139 commit 5d7491a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/include/__config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +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, Apple C library and AIX C library do not yet support
1028-
// these functions.
1027+
// Apple C library, Microsoft C Runtime, AIX C library and FreeBSD libc do not
1028+
// yet support these functions.
10291029
# if defined(_LIBCPP_GLIBC_PREREQ)
10301030
# if defined(__cpp_char8_t) && _LIBCPP_GLIBC_PREREQ(2, 36)
10311031
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 1
@@ -1038,7 +1038,7 @@ typedef __char32_t char32_t;
10381038
# else
10391039
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 0
10401040
# endif
1041-
# elif defined(__APPLE__) || defined(_MSC_VER) || defined(_AIX)
1041+
# elif defined(__APPLE__) || defined(_MSC_VER) || defined(_LIBCPP_UCRT) || defined(_AIX) || defined(__FreeBSD__)
10421042
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 0
10431043
# else
10441044
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 1

0 commit comments

Comments
 (0)