aboutsummaryrefslogtreecommitdiff
path: root/include/stddef.h
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-10-25 00:19:12 +0300
committerseyko <seyko2@gmail.com>2015-10-25 00:19:12 +0300
commit12f94f27703032f1cd17924b352158a723a4ef7c (patch)
tree36c35e1d941c55f1602ee368e8b7bf25d7fab79c /include/stddef.h
parentf3ce1be3333aaa05950ec5983d4ec2b6aad7275c (diff)
downloadtinycc-12f94f27703032f1cd17924b352158a723a4ef7c.tar.gz
tinycc-12f94f27703032f1cd17924b352158a723a4ef7c.tar.bz2
include/stddef.h: define NULL only if undefined
Diffstat (limited to 'include/stddef.h')
-rw-r--r--include/stddef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
index 9e43de9..791ba31 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -20,7 +20,10 @@ typedef unsigned int uint32_t;
typedef unsigned long long int uint64_t;
#endif
+#ifndef NULL
#define NULL ((void*)0)
+#endif
+
#define offsetof(type, field) ((size_t)&((type *)0)->field)
void *alloca(size_t size);