[libcxx-commits] [PATCH] D150015: [libc++] Consistently enable __CORRECT_ISO_CPP_WCHAR_H_PROTO in mbstate.
Fangrui Song via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 9 15:08:09 PDT 2023
MaskRay added inline comments.
================
Comment at: libcxx/include/__mbstate_t.h:34
# include <sys/_types/_mbstate_t.h> // works on Darwin
-#elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) && __has_include_next(<wchar.h>)
-# include_next <wchar.h> // fall back to the C standard provider of mbstate_t
+#elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) && __has_include(<wchar.h>)
+# include <wchar.h> // fall back to the C standard provider of mbstate_t
----------------
Is `__has_include(<wchar.h>)` always true? libc++ ships a copy of `wchar.h` that dispatches to the C library `wchar.h` (through `#include_next <wchar.h>`).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150015/new/
https://reviews.llvm.org/D150015
More information about the libcxx-commits
mailing list