source:
GPL/trunk/include/linux/stddef.h@
776
| Last change on this file since 776 was 772, checked in by , 7 months ago | |
|---|---|
| File size: 224 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 | #define offsetof(__typ,__id) ((size_t)&(((__typ*)0)->__id)) |
| 13 | |
| 14 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
