diff options
author | Zheng Da <zhengda1936@gmail.com> | 2009-12-06 05:26:23 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2009-12-06 05:26:23 +0100 |
commit | 8a6d48c0542876eb3acfc0970c0ab7872db08d5f (patch) | |
tree | 496e78bc728317ea779781b92f897d16936ee231 /libdde_linux26/include/linux/.svn/text-base/stddef.h.svn-base | |
parent | b4bffcfcdf3ab7a55d664e9aa5907f88da503f38 (diff) |
check in the original version of dde linux26.
Diffstat (limited to 'libdde_linux26/include/linux/.svn/text-base/stddef.h.svn-base')
-rw-r--r-- | libdde_linux26/include/linux/.svn/text-base/stddef.h.svn-base | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libdde_linux26/include/linux/.svn/text-base/stddef.h.svn-base b/libdde_linux26/include/linux/.svn/text-base/stddef.h.svn-base new file mode 100644 index 00000000..6a40c76b --- /dev/null +++ b/libdde_linux26/include/linux/.svn/text-base/stddef.h.svn-base @@ -0,0 +1,28 @@ +#ifndef _LINUX_STDDEF_H +#define _LINUX_STDDEF_H + +#include <linux/compiler.h> + +#undef NULL +#if defined(__cplusplus) +#define NULL 0 +#else +#define NULL ((void *)0) +#endif + +#ifdef __KERNEL__ + +enum { + false = 0, + true = 1 +}; + +#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 /* __KERNEL__ */ + +#endif |