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