Changeset 331 for EcnlProtoTool/trunk/tcc-0.9.27/include/stddef.h
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/tcc-0.9.27
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/tcc-0.9.27/include/stddef.h
r321 r331 14 14 typedef signed short int int16_t; 15 15 typedef signed int int32_t; 16 #ifdef __LP64__ 17 typedef signed long int int64_t; 18 #else 16 19 typedef signed long long int int64_t; 20 #endif 17 21 typedef unsigned char uint8_t; 18 22 typedef unsigned short int uint16_t; 19 23 typedef unsigned int uint32_t; 24 #ifdef __LP64__ 25 typedef unsigned long int uint64_t; 26 #else 20 27 typedef unsigned long long int uint64_t; 21 28 #endif 29 #endif 22 30 31 #ifndef NULL 23 32 #define NULL ((void*)0) 33 #endif 34 24 35 #define offsetof(type, field) ((size_t)&((type *)0)->field) 25 36 … … 27 38 28 39 #endif 40 41 /* Older glibc require a wint_t from <stddef.h> (when requested 42 by __need_wint_t, as otherwise stddef.h isn't allowed to 43 define this type). Note that this must be outside the normal 44 _STDDEF_H guard, so that it works even when we've included the file 45 already (without requiring wint_t). Some other libs define _WINT_T 46 if they've already provided that type, so we can use that as guard. 47 TCC defines __WINT_TYPE__ for us. */ 48 #if defined (__need_wint_t) 49 #ifndef _WINT_T 50 #define _WINT_T 51 typedef __WINT_TYPE__ wint_t; 52 #endif 53 #undef __need_wint_t 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.