1 #ifndef _LIBPCC_STDDEF_H_
3 #if !defined(__need_wchar_t) && !defined(__need_size_t) \
4 && !defined(__need_ptrdiff_t) && !defined(__need_NULL) \
5 && !defined(__need_wint_t)
6 #define _LIBPCC_STDDEF_H_
9 #if defined(_LIBPCC_STDDEF_H_) || defined(__need_ptrdiff_t)
10 #if !defined(_PTRDIFF_T) && !defined(__ptrdiff_t_defined)
12 #define __ptrdiff_t_defined
13 #ifdef __PTRDIFF_TYPE__
14 typedef __PTRDIFF_TYPE__
ptrdiff_t;
16 typedef int ptrdiff_t;
21 #if defined(_LIBPCC_STDDEF_H_) || defined(__need_size_t)
22 #if !defined(_SIZE_T) && !defined(__size_t_defined) && !defined(_SIZE_T_)
25 #define __size_t_defined
27 typedef __SIZE_TYPE__
size_t;
29 typedef unsigned long size_t;
32 #if !defined(_OFF_T) && !defined(__off_t_defined) && !defined(_OFF_T_)
35 #define __off_t_defined
37 typedef __OFF_TYPE__ off_t
;
44 #if defined(_LIBPCC_STDDEF_H_) || defined(__need_wchar_t)
46 #if !defined(_WCHAR_T) && !defined(__wchar_t_defined)
48 #define __wchar_t_defined
50 typedef __WCHAR_TYPE__
wchar_t;
52 typedef unsigned short wchar_t;
58 #if defined(_LIBPCC_STDDEF_H_) || defined(__need_wint_t)
59 #if !defined(_WINT_T) && !defined(__wint_t_defined)
61 #define __wint_t_defined
63 typedef __WINT_TYPE__
wint_t;
65 typedef unsigned int wint_t;
70 #if defined(_LIBPCC_STDDEF_H_) || defined(__need_NULL)
75 #if defined(_LIBPCC_STDDEF_H_)
76 #define offsetof(type, member) ((size_t)&(((type *) 0)->member))
79 #undef __need_ptrdiff_t