summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/wchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/wchar.h')
-rw-r--r--newlib/libc/include/wchar.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index 3cb12e25f..f9e623774 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -8,6 +8,7 @@
#define __need_size_t
#define __need_wchar_t
#define __need_wint_t
+#define __need_NULL
#include <stddef.h>
#define __need___va_list
@@ -19,10 +20,6 @@
/* For __STDC_ISO_10646__ */
#include <sys/features.h>
-#ifndef NULL
-#define NULL 0
-#endif
-
#ifndef WEOF
# define WEOF ((wint_t)-1)
#endif