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 wctype_t; 16 typedef uint32_t wint_t; 17 18 19 typedef long unsigned int size_t; 20 21 typedef struct { long long __ll; long double __ld; } max_align_t; 22 23 #define offsetof(type, member) __builtin_offsetof(type, member) 24 25 #endif /* _STDDEF_H */ 26