source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/stddef.h @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 330 bytes
Line 
1#ifndef _LINUX_STDDEF_H
2#define _LINUX_STDDEF_H
3
4#undef NULL
5#if defined(__cplusplus)
6#define NULL 0
7#else
8#define NULL ((void *)0)
9#endif
10
11#undef offsetof
12#ifdef __compiler_offsetof
13#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
14#else
15#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
16#endif
17
18#endif
Note: See TracBrowser for help on using the repository browser.