include/stddef.h: define NULL only if undefined
This commit is contained in:
@ -20,7 +20,10 @@ typedef unsigned int uint32_t;
|
|||||||
typedef unsigned long long int uint64_t;
|
typedef unsigned long long int uint64_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NULL
|
||||||
#define NULL ((void*)0)
|
#define NULL ((void*)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define offsetof(type, field) ((size_t)&((type *)0)->field)
|
#define offsetof(type, field) ((size_t)&((type *)0)->field)
|
||||||
|
|
||||||
void *alloca(size_t size);
|
void *alloca(size_t size);
|
||||||
|
|||||||
Reference in New Issue
Block a user