diff options
Diffstat (limited to 'libc/include/stdlib.h')
| -rw-r--r-- | libc/include/stdlib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index a821e03..acfe694 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -29,6 +29,13 @@ #define _STDLIB_H_ #include <sys/cdefs.h> + +/* wchar_t is required in stdlib.h according to POSIX. + * note that defining __need_wchar_t prevents stddef.h + * to define all other symbols it does normally */ +#define __need_wchar_t +#include <stddef.h> + #include <stddef.h> #include <string.h> #include <alloca.h> |
