6 #ifndef __sys_stdtypes_h
7 /* This avoids lossage on Sunos but only if stdtypes.h comes first.
8 There's no way to win with the other order! Sun lossage. */
10 /* Signed type of difference of two pointers. */
12 #ifndef _PTRDIFF_T /* in case <sys/types.h> has defined it. */
16 #ifndef ___int_ptrdiff_t_h
21 #define ___int_ptrdiff_t_h
22 typedef __PTRDIFF_TYPE__ ptrdiff_t;
23 #endif /* ___int_ptrdiff_t_h */
24 #endif /* _PTRDIFF_T_ */
25 #endif /* __PTRDIFF_T */
26 #endif /* _T_PTRDIFF */
27 #endif /* _PTRDIFF_T */
29 /* Unsigned type of `sizeof' something. */
31 #ifndef _SIZE_T /* in case <sys/types.h> has defined it. */
35 #ifndef ___int_size_t_h
40 #define ___int_size_t_h
41 typedef __SIZE_TYPE__ size_t;
42 #endif /* ___int_size_t_h */
48 /* Data type for wide chars. */
54 #ifndef ___int_wchar_t_h
59 #define ___int_wchar_t_h
60 typedef __WCHAR_TYPE__ wchar_t;
67 #endif /* __sys_stdtypes_h */
69 /* A null pointer constant. */
71 #undef NULL /* in case <stdio.h> has defined it. */
72 #define NULL ((void *)0)
74 /* Offset of member MEMBER in a struct of type TYPE. */
76 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
78 #endif /* _STDDEF_H_ */
79 #endif /* _STDDEF_H */