wdenk | 2acb895 | 2002-03-31 12:34:56 +0000 | [diff] [blame] | 1 | #ifndef _LINUX_STDDEF_H |
2 | #define _LINUX_STDDEF_H | ||||
3 | |||||
4 | #undef NULL | ||||
5 | #if defined(__cplusplus) | ||||
6 | #define NULL 0 | ||||
7 | #else | ||||
8 | #define NULL ((void *)0) | ||||
9 | #endif | ||||
10 | |||||
11 | #ifndef _SIZE_T | ||||
12 | #include <linux/types.h> | ||||
13 | #endif | ||||
14 | |||||
Kim Phillips | aa9e891 | 2012-10-29 13:34:26 +0000 | [diff] [blame] | 15 | #ifndef __CHECKER__ |
wdenk | 2acb895 | 2002-03-31 12:34:56 +0000 | [diff] [blame] | 16 | #undef offsetof |
17 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | ||||
Kim Phillips | aa9e891 | 2012-10-29 13:34:26 +0000 | [diff] [blame] | 18 | #endif |
wdenk | 2acb895 | 2002-03-31 12:34:56 +0000 | [diff] [blame] | 19 | |
20 | #endif |