include/stddef.h: define NULL only if undefined

This commit is contained in:
seyko 2015-10-25 00:19:12 +03:00
parent f3ce1be333
commit 12f94f2770

View File

@ -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);