mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
include/stddef.h: define NULL only if undefined
This commit is contained in:
parent
f3ce1be333
commit
12f94f2770
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user