This commit is contained in:
Sylvestre Ledru 2023-05-30 13:39:49 +02:00
parent 988fdc9a1d
commit b02fef2c8a

View File

@ -1,14 +1,17 @@
Index: llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55/libcxx/include/wchar.h Index: llvm-toolchain-snapshot_17~++20230530094321+b187215a44f7/libcxx/include/__mbstate_t.h
=================================================================== ===================================================================
--- llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55.orig/libcxx/include/wchar.h --- llvm-toolchain-snapshot_17~++20230530094321+b187215a44f7.orig/libcxx/include/__mbstate_t.h
+++ llvm-toolchain-snapshot_17~++20230517080653+e9a17453ee55/libcxx/include/wchar.h +++ llvm-toolchain-snapshot_17~++20230530094321+b187215a44f7/libcxx/include/__mbstate_t.h
@@ -122,6 +122,8 @@ size_t wcsrtombs(char* restrict dst, con @@ -35,7 +35,11 @@
# define __CORRECT_ISO_CPP_WCHAR_H_PROTO # define __CORRECT_ISO_CPP_WCHAR_H_PROTO
#endif #endif
+#define __DEFINED_mbstate_t -#if __has_include(<bits/types/mbstate_t.h>)
+ +
# if __has_include_next(<wchar.h>) +#if __has_include(<bits/alltypes.h>) // Probe for musl
# include_next <wchar.h> +#define __NEED_mbstate_t // Tell musl we need __mbstate_t (and nothing else)
# else +#include <bits/alltypes.h>
+#elif __has_include(<bits/types/mbstate_t.h>)
# include <bits/types/mbstate_t.h> // works on most Unixes
#elif __has_include(<sys/_types/_mbstate_t.h>)
# include <sys/_types/_mbstate_t.h> // works on Darwin