Blame view

include/linux/stddef.h 303 Bytes
2acb89578   wdenk   Initial revision
1
2
3
4
5
6
7
8
9
10
11
12
13
  #ifndef _LINUX_STDDEF_H
  #define _LINUX_STDDEF_H
  
  #undef NULL
  #if defined(__cplusplus)
  #define NULL 0
  #else
  #define NULL ((void *)0)
  #endif
  
  #ifndef _SIZE_T
  #include <linux/types.h>
  #endif
aa9e891c6   Kim Phillips   include/linux/std...
14
  #ifndef __CHECKER__
2acb89578   wdenk   Initial revision
15
16
  #undef offsetof
  #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
aa9e891c6   Kim Phillips   include/linux/std...
17
  #endif
2acb89578   wdenk   Initial revision
18
19
  
  #endif