Not wise if stddef.h was already included. This is related to commit 3aa26a794e24a298493a2bc9d70fbd9aebf6437a Instead hack stddef.h to have identical definition and thus avoid the issue mentionned there.
Unified · Split
| @@ -20,7 +20,7 @@ typedef unsigned int uint32_t; · 19 unmodified lines | ||
| 20 | 20 | typedef unsigned long long int uint64_t; |
| 21 | 21 | #endif |
| 22 | 22 | |
| 23 | −#define NULL ((void *)0) | |
| 23 | +#define NULL ((void*)0) | |
| 24 | 24 | #define offsetof(type, field) ((size_t)&((type *)0)->field) |
| 25 | 25 | |
| 26 | 26 | void *alloca(size_t size); |
| @@ -19,7 +19,6 @@ · 18 unmodified lines | ||
| 19 | 19 | #define __MINGW_H |
| 20 | 20 | |
| 21 | 21 | /* some winapi files define these before including _mingw.h --> */ |
| 22 | −#undef NULL | |
| 23 | 22 | #undef __cdecl |
| 24 | 23 | #undef _X86_ |
| 25 | 24 | #undef WIN32 |