split out wchar_t from stddef header

This commit is contained in:
auronandace
2026-06-04 11:17:36 +01:00
parent fafc4c2c00
commit d28a131ec5
5 changed files with 26 additions and 14 deletions
+1 -10
View File
@@ -3,16 +3,7 @@
// wchar_t should come before NULL and size_t
// according to comment in wchar cbindgen
#ifndef _WCHAR_T
#define _WCHAR_T
#ifndef __cplusplus
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int
#endif
typedef __WCHAR_TYPE__ wchar_t;
#endif // __cplusplus
#endif // _WCHAR_T
#include <bits/wchar-t.h>
#include <bits/size-t.h>
#include <bits/null.h>