Contents of /trunk/mkinitrd-magellan/klibc/usr/include/stddef.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 347 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 347 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * stddef.h |
3 | */ |
4 | |
5 | #ifndef _STDDEF_H |
6 | #define _STDDEF_H |
7 | |
8 | #ifndef __KLIBC__ |
9 | # error "__KLIBC__ not defined, compiler invocation error!" |
10 | #endif |
11 | |
12 | #include <bitsize/stddef.h> |
13 | |
14 | #undef NULL |
15 | #ifdef __cplusplus |
16 | # define NULL 0 |
17 | #else |
18 | # define NULL ((void *)0) |
19 | #endif |
20 | |
21 | #undef offsetof |
22 | #define offsetof(t,m) ((size_t)&((t *)0)->m) |
23 | |
24 | #endif /* _STDDEF_H */ |