2005-04-16 16:20:36 -06:00
|
|
|
#ifndef _LINUX_STDDEF_H
|
|
|
|
#define _LINUX_STDDEF_H
|
|
|
|
|
2012-10-13 03:46:48 -06:00
|
|
|
#include <uapi/linux/stddef.h>
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2012-03-21 07:08:24 -06:00
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
#undef NULL
|
|
|
|
#define NULL ((void *)0)
|
2006-10-01 00:27:11 -06:00
|
|
|
|
|
|
|
enum {
|
|
|
|
false = 0,
|
|
|
|
true = 1
|
|
|
|
};
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
#undef offsetof
|
|
|
|
#ifdef __compiler_offsetof
|
|
|
|
#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
|
|
|
|
#else
|
|
|
|
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
|
|
|
#endif
|
|
|
|
#endif
|