diff options
| author | seyko <seyko2@gmail.com> | 2015-10-25 00:19:12 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-10-25 00:19:12 +0300 |
| commit | 12f94f27703032f1cd17924b352158a723a4ef7c (patch) | |
| tree | 36c35e1d941c55f1602ee368e8b7bf25d7fab79c | |
| parent | f3ce1be3333aaa05950ec5983d4ec2b6aad7275c (diff) | |
| download | tinycc-12f94f27703032f1cd17924b352158a723a4ef7c.tar.gz tinycc-12f94f27703032f1cd17924b352158a723a4ef7c.tar.bz2 | |
include/stddef.h: define NULL only if undefined
| -rw-r--r-- | include/stddef.h | 3 |
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); |
