summaryrefslogtreecommitdiff
path: root/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stddef.h')
-rw-r--r--include/stddef.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
index 9d522486..0a329190 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -1,7 +1,11 @@
#ifndef _STDDEF_H
#define _STDDEF_H
+#ifdef __cplusplus
#define NULL 0L
+#else
+#define NULL ((void*)0)
+#endif
#define __NEED_ptrdiff_t
#define __NEED_size_t