Skip to content

Commit 91ea91e

Browse files
committed
Handle Apple and MSVC explictly
1 parent 8d87631 commit 91ea91e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/__config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,8 @@ typedef __char32_t char32_t;
10231023
// defined are ignored.
10241024
//
10251025
// picolibc 1.8.9 and newer declare the two functions unconditionally.
1026+
//
1027+
// Microsoft C Runtime and Apple C library do not yet support these functions.
10261028
# if defined(_LIBCPP_GLIBC_PREREQ)
10271029
# if defined(__cpp_char8_t) && _LIBCPP_GLIBC_PREREQ(2, 36)
10281030
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 1
@@ -1035,6 +1037,8 @@ typedef __char32_t char32_t;
10351037
# else
10361038
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 0
10371039
# endif
1040+
# elif defined(__APPLE__) || defined(_MSC_VER)
1041+
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 0
10381042
# else
10391043
# define _LIBCPP_HAS_C8RTOMB_MBRTOC8 1
10401044
# endif

0 commit comments

Comments
 (0)