1 #ifndef _STDDEF_H 2 #define _STDDEF_H 3 #include "stdint.h" 4 5 #define NULL 0 6 7 #ifndef __PTRDIFF_TYPE__ 8 #define __PTRDIFF_TYPE__ long int 9 #endif 10 typedef __PTRDIFF_TYPE__ ptrdiff_t; 11 12 #ifndef __cplusplus 13 typedef int32_t wchar_t; 14 #endif /* #ifndef __cplusplus */ 15 typedef uint32_t wint_t; 16 17 18 typedef long unsigned int size_t; 19 20 typedef struct { long long __ll; long double __ld; } max_align_t; 21 22 #define offsetof(type, member) __builtin_offsetof(type, member) 23 24 #endif /* _STDDEF_H */ 25