You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[libc++] Do not guard inclusion of wchar.h with _LIBCPP_HAS_WIDE_CHARACTERS
mbstate_t needs to be visible to libcpp, even when it is not relying on
wide character functionality in the C library. C90 amendment 1 says that
this type is to be visible through wchar.h. That header file is provided
by the C standard library even when that library is not implementing wchar
functions (such as newlib with --nano-formatted-io).
Since we have a way to conditionally include <wchar.h> only if it exists,
we should rely on the fact that if it exists, it will provide mbstate_t.
0 commit comments