]> pd.if.org Git - pdclib/blob - includes/stddef.h
Minimize the amount of internal definitions which get exposed via the user-visible...
[pdclib] / includes / stddef.h
1 /* $Id$ */
2
3 /* 7.17 Common definitions <stddef.h>
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #ifndef _PDCLIB_STDDEF_H
10 #define _PDCLIB_STDDEF_H _PDCLIB_STDDEF_H
11 #include <_PDCLIB_config.h>
12 #include <_PDCLIB_int.h>
13 _PDCLIB_BEGIN_EXTERN_C
14
15 typedef _PDCLIB_ptrdiff_t ptrdiff_t;
16
17 #ifndef _PDCLIB_SIZE_T_DEFINED
18 #define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED
19 typedef _PDCLIB_size_t size_t;
20 #endif
21
22 #ifndef __cplusplus
23 #ifndef _PDCLIB_WCHAR_T_DEFINED
24 #define _PDCLIB_WCHAR_T_DEFINED _PDCLIB_WCHAR_T_DEFINED
25 typedef _PDCLIB_wchar_t   wchar_t;
26 #endif
27 #endif
28
29 #ifndef _PDCLIB_NULL_DEFINED
30 #define _PDCLIB_NULL_DEFINED _PDCLIB_NULL_DEFINED
31 #define NULL _PDCLIB_NULL
32 #endif
33
34 #define offsetof( type, member ) _PDCLIB_offsetof( type, member )
35
36 _PDCLIB_END_EXTERN_C
37 #endif
38