]> pd.if.org Git - pdclib/blob - includes/stddef.h
cec8dfbaddcf14a856f0db8843ca87dfd4a8f78f
[pdclib] / includes / stddef.h
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * ----------------------------------------------------------------------------
7  * Common definitions
8  * ----------------------------------------------------------------------------
9  * This header is part of a freestanding implementation
10  * --------------------------------------------------------------------------*/
11
12 #ifndef _STDDEF_H
13 #define _STDDEF_H _STDDEF_H
14
15 #ifndef _NULL
16 #include "__intern.h"
17 #endif
18
19 /* TODO: Documentation */
20
21 /* ----------------------------------------------------------------------------
22  * MACROS
23  * --------------------------------------------------------------------------*/
24
25 #define NULL _NULL
26
27 #define offsetof( s-type, mbr ) /* TODO - to __intern.h / __personality.h? */
28
29 /* ----------------------------------------------------------------------------
30  * TYPEDEFS
31  * --------------------------------------------------------------------------*/
32
33 #ifndef _SIZE_T
34 #define _SIZE_T _SIZE_T
35 typedef __size_t size_t;
36 #endif /* _SIZE_T */
37
38 #ifndef _WCHAR_T
39 #define _WCHAR_T _WCHAR_T
40 typedef __wchar_t wchar_t;
41 #endif /* _WCHAR_T */
42
43 /* Look this up in the C Standard Rationale, which has example code on this. */
44 typedef ptrdiff_t; /* TODO - to __intern.h / __personality.h? */
45
46 #endif /* _STDDEF_H */