about summary refs log tree commit diff
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, 3 insertions, 1 deletions
diff --git a/include/stddef.h b/include/stddef.h
index bd753853..f25b8639 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -1,7 +1,9 @@
 #ifndef _STDDEF_H
 #define _STDDEF_H
 
-#ifdef __cplusplus
+#if __cplusplus >= 201103L
+#define NULL nullptr
+#elif defined(__cplusplus)
 #define NULL 0L
 #else
 #define NULL ((void*)0)