Rev | Line | |
---|
[9] | 1 | /* The <stddef.h> header defines certain commonly used macros. */
|
---|
| 2 |
|
---|
| 3 | #ifndef _STDDEF_H
|
---|
| 4 | #define _STDDEF_H
|
---|
| 5 |
|
---|
| 6 | #define NULL ((void *)0)
|
---|
| 7 |
|
---|
| 8 | /* The following is not portable, but the compiler accepts it. */
|
---|
| 9 | #define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident)
|
---|
| 10 |
|
---|
| 11 | #if _EM_PSIZE == _EM_WSIZE
|
---|
| 12 | typedef int ptrdiff_t; /* result of subtracting two pointers */
|
---|
| 13 | #else /* _EM_PSIZE == _EM_LSIZE */
|
---|
| 14 | typedef long ptrdiff_t;
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 | #ifndef _SIZE_T
|
---|
| 18 | #define _SIZE_T
|
---|
| 19 | typedef unsigned int size_t; /* type returned by sizeof */
|
---|
| 20 | #endif
|
---|
| 21 |
|
---|
| 22 | #ifndef _WCHAR_T
|
---|
| 23 | #define _WCHAR_T
|
---|
| 24 | typedef char wchar_t; /* type expanded character set */
|
---|
| 25 | #endif
|
---|
| 26 |
|
---|
| 27 | #endif /* _STDDEF_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.