diff options
Diffstat (limited to 'libc/include/wchar.h')
| -rw-r--r-- | libc/include/wchar.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/include/wchar.h b/libc/include/wchar.h index 3dadc98..e2feb60 100644 --- a/libc/include/wchar.h +++ b/libc/include/wchar.h @@ -30,11 +30,17 @@ #include <sys/cdefs.h> #include <stdio.h> + +/* wchar_t is required in stdlib.h according to POSIX */ +#define __need___wchar_t #include <stddef.h> + #include <stdarg.h> #include <time.h> #include <malloc.h> +#include <stddef.h> + /* IMPORTANT: Any code that relies on wide character support is essentially * non-portable and/or broken. the only reason this header exist * is because I'm really a nice guy. However, I'm not nice enough @@ -44,11 +50,6 @@ __BEGIN_DECLS -#ifndef __cplusplus -/* wchar_t is a builtin keyword of g++ */ -typedef unsigned char wchar_t; -#endif - typedef int wint_t; typedef struct { int dummy; } mbstate_t; |
