Loading...
--- Libc/Libc-1244.30.3/include/wchar.h
+++ Libc/Libc-825.26/include/wchar.h
@@ -71,12 +71,36 @@
#include <sys/cdefs.h>
#include <Availability.h>
-#include <sys/_types/_null.h>
-#include <sys/_types/_size_t.h>
-#include <sys/_types/_mbstate_t.h>
-#include <sys/_types/_ct_rune_t.h>
-#include <sys/_types/_rune_t.h>
-#include <sys/_types/_wchar_t.h>
+#ifndef NULL
+#define NULL __DARWIN_NULL
+#endif /* ! NULL */
+
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef __darwin_size_t size_t;
+#endif
+
+#ifndef _MBSTATE_T
+#define _MBSTATE_T
+typedef __darwin_mbstate_t mbstate_t;
+#endif
+
+#ifndef _CT_RUNE_T
+#define _CT_RUNE_T
+typedef __darwin_ct_rune_t ct_rune_t;
+#endif
+
+#ifndef _RUNE_T
+#define _RUNE_T
+typedef __darwin_rune_t rune_t;
+#endif
+
+#ifndef __cplusplus
+#ifndef _WCHAR_T
+#define _WCHAR_T
+typedef __darwin_wchar_t wchar_t;
+#endif /* _WCHAR_T */
+#endif /* __cplusplus */
#ifndef WCHAR_MIN
#define WCHAR_MIN __DARWIN_WCHAR_MIN
@@ -211,7 +235,6 @@
size_t wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t,
size_t, mbstate_t * __restrict);
-FILE *open_wmemstream(wchar_t ** __bufp, size_t * __sizep) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
__END_DECLS
#endif /* __DARWIN_C_LEVEL >= 200809L */