Fixes for U-Boot charging
[u-boot-openmoko/mini2440.git] / include / linux / stddef.h
blob81e34c260fe62909235de29c3fe27c82f3a4e0f2
1 #ifndef _LINUX_STDDEF_H
2 #define _LINUX_STDDEF_H
4 #undef NULL
5 #if defined(__cplusplus)
6 #define NULL 0
7 #else
8 #define NULL ((void *)0)
9 #endif
11 #ifndef _SIZE_T
12 #include <linux/types.h>
13 #endif
15 #undef offsetof
16 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
18 #endif