chiark / gitweb /
[PATCH] klibc: version 1.0.3
[elogind.git] / klibc / include / stddef.h
1 /*
2  * stddef.h
3  */
4
5 #ifndef _STDDEF_H
6 #define _STDDEF_H
7
8 #ifndef __KLIBC__
9 # error "__KLIBC__ not defined, compiler invocation error!"
10 #endif
11
12 #include <bitsize/stddef.h>
13
14 #undef NULL
15 #ifdef __cplusplus
16 # define NULL 0
17 #else
18 # define NULL ((void *)0)
19 #endif
20
21 #undef offsetof
22 #define offsetof(t,m) ((size_t)&((t *)0)->m)
23
24 #endif /* _STDDEF_H */