mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-15 10:37:58 +00:00
mbstate: use workaround from usptream https://github.com/llvm/llvm-project/issues/62523\#issuecomment-1553863958
This commit is contained in:
parent
988fdc9a1d
commit
b02fef2c8a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user