2005-04-17 02:20:36 +04:00
|
|
|
#ifndef _LINUX_STDDEF_H
|
|
|
|
#define _LINUX_STDDEF_H
|
|
|
|
|
2012-10-13 13:46:48 +04:00
|
|
|
#include <uapi/linux/stddef.h>
|
2005-04-17 02:20:36 +04:00
|
|
|
|
2012-03-21 17:08:24 +04:00
|
|
|
|
2005-04-17 02:20:36 +04:00
|
|
|
#undef NULL
|
|
|
|
#define NULL ((void *)0)
|
2006-10-01 10:27:11 +04:00
|
|
|
|
|
|
|
enum {
|
|
|
|
false = 0,
|
|
|
|
true = 1
|
|
|
|
};
|
|
|
|
|
2005-04-17 02:20:36 +04: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
|