Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_STDDEF_H
     13 #define _LINUX_STDDEF_H
     14 
     15 #include <linux/compiler.h>
     16 
     17 #undef NULL
     18 #ifdef __cplusplus
     19 #define NULL 0
     20 #else
     21 #define NULL ((void *)0)
     22 #endif
     23 
     24 #undef offsetof
     25 #ifdef __compiler_offsetof
     26 #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
     27 #else
     28 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
     29 #endif
     30 
     31 #endif
     32