|
|
1.1 ! root 1: #ifndef _STDDEF_H ! 2: #ifndef _STDDEF_H_ ! 3: #define _STDDEF_H ! 4: #define _STDDEF_H_ ! 5: ! 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. */ ! 9: ! 10: /* In case nobody has defined these types, but we aren't running under ! 11: GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE__TYPE__, and ! 12: __WCHAR_TYPE__ have reasonable values. This can happen if the ! 13: parts of GCC is compiled by an older compiler, that actually ! 14: include gstddef.h, such as collect2. */ ! 15: ! 16: /* Signed type of difference of two pointers. */ ! 17: ! 18: #ifndef _PTRDIFF_T /* in case <sys/types.h> has defined it. */ ! 19: #ifndef _T_PTRDIFF ! 20: #ifndef __PTRDIFF_T ! 21: #ifndef _PTRDIFF_T_ ! 22: #ifndef ___int_ptrdiff_t_h ! 23: #define _PTRDIFF_T ! 24: #define _T_PTRDIFF ! 25: #define __PTRDIFF_T ! 26: #define _PTRDIFF_T_ ! 27: #define ___int_ptrdiff_t_h ! 28: #ifndef __PTRDIFF_TYPE__ ! 29: #define __PTRDIFF_TYPE__ long int ! 30: #endif ! 31: typedef __PTRDIFF_TYPE__ ptrdiff_t; ! 32: #endif /* ___int_ptrdiff_t_h */ ! 33: #endif /* _PTRDIFF_T_ */ ! 34: #endif /* __PTRDIFF_T */ ! 35: #endif /* _T_PTRDIFF */ ! 36: #endif /* _PTRDIFF_T */ ! 37: ! 38: /* Unsigned type of `sizeof' something. */ ! 39: ! 40: #ifndef _SIZE_T /* in case <sys/types.h> has defined it. */ ! 41: #ifndef _T_SIZE ! 42: #ifndef __SIZE_T ! 43: #ifndef _SIZE_T_ ! 44: #ifndef ___int_size_t_h ! 45: #define _SIZE_T ! 46: #define _T_SIZE ! 47: #define __SIZE_T ! 48: #define _SIZE_T_ ! 49: #define ___int_size_t_h ! 50: #ifndef __SIZE_TYPE__ ! 51: #define __SIZE_TYPE__ long unsigned int ! 52: #endif ! 53: typedef __SIZE_TYPE__ size_t; ! 54: #endif /* ___int_size_t_h */ ! 55: #endif /* _SIZE_T_ */ ! 56: #endif /* __SIZE_T */ ! 57: #endif /* _T_SIZE */ ! 58: #endif /* _SIZE_T */ ! 59: ! 60: /* Data type for wide chars. */ ! 61: ! 62: #ifndef _WCHAR_T ! 63: #ifndef _T_WCHAR_ ! 64: #ifndef _T_WCHAR ! 65: #ifndef __WCHAR_T ! 66: #ifndef _WCHAR_T_ ! 67: #ifndef ___int_wchar_t_h ! 68: #define _WCHAR_T ! 69: #define _T_WCHAR_ ! 70: #define _T_WCHAR ! 71: #define __WCHAR_T ! 72: #define _WCHAR_T_ ! 73: #define ___int_wchar_t_h ! 74: #ifndef __WCHAR_TYPE__ ! 75: #define __WCHAR_TYPE__ int ! 76: #endif ! 77: typedef __WCHAR_TYPE__ wchar_t; ! 78: #endif ! 79: #endif ! 80: #endif ! 81: #endif ! 82: #endif ! 83: #endif ! 84: ! 85: #endif /* __sys_stdtypes_h */ ! 86: ! 87: /* A null pointer constant. */ ! 88: ! 89: #undef NULL /* in case <stdio.h> has defined it. */ ! 90: #define NULL ((void *)0) ! 91: ! 92: /* Offset of member MEMBER in a struct of type TYPE. */ ! 93: ! 94: #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) ! 95: ! 96: #endif /* _STDDEF_H_ */ ! 97: #endif /* _STDDEF_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.