diff --git a/libcxx/include/__mbstate_t.h b/libcxx/include/__mbstate_t.h --- a/libcxx/include/__mbstate_t.h +++ b/libcxx/include/__mbstate_t.h @@ -27,6 +27,12 @@ // This does not define std::mbstate_t -- this only brings in the declaration // in the global namespace. +// Consistently set this the same as in libc++'s header to avoid +// different function signatures. +#ifdef __cplusplus +# define __CORRECT_ISO_CPP_WCHAR_H_PROTO +#endif + #if __has_include() # include // works on most Unixes #elif __has_include()