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.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -20,7 +20,7 @@ typedef unsigned int uint32_t; · 19 unmodified lines | |||
| 20 | typedef unsigned long long int uint64_t; | 20 | typedef unsigned long long int uint64_t; |
| 21 | #endif | 21 | #endif |
| 22 | 22 | ||
| 23 | #define NULL ((void *)0) | 23 | #define NULL ((void*)0) |
| 24 | #define offsetof(type, field) ((size_t)&((type *)0)->field) | 24 | #define offsetof(type, field) ((size_t)&((type *)0)->field) |
| 25 | 25 | ||
| 26 | void *alloca(size_t size); | 26 | void *alloca(size_t size); |