38 #error "Use this header only with Microsoft Visual C++ compilers!" 41 #ifndef _MSC_STDINT_H_ // [ 42 #define _MSC_STDINT_H_ 50 #if _MSC_VER >= 1600 // [ 53 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 66 #define INT8_C(val) val##i8 67 #define INT16_C(val) val##i16 68 #define INT32_C(val) val##i32 69 #define INT64_C(val) val##i64 71 #define UINT8_C(val) val##ui8 72 #define UINT16_C(val) val##ui16 73 #define UINT32_C(val) val##ui32 74 #define UINT64_C(val) val##ui64 80 #define INTMAX_C INT64_C 82 #ifndef UINTMAX_C // [ 83 #define UINTMAX_C UINT64_C 86 #endif // __STDC_CONSTANT_MACROS ] 88 #else // ] _MSC_VER >= 1700 [ 96 #if defined(__cplusplus) && !defined(_M_ARM) 100 #if defined(__cplusplus) && !defined(_M_ARM) 106 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 120 #if (_MSC_VER < 1300) 128 typedef signed __int8
int8_t;
129 typedef signed __int16
int16_t;
130 typedef signed __int32
int32_t;
131 typedef unsigned __int8
uint8_t;
173 #if !defined(__cplusplus) || \ 174 defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and footnote 221 at page 259 177 #define INT8_MIN ((int8_t)_I8_MIN) 178 #define INT8_MAX _I8_MAX 179 #define INT16_MIN ((int16_t)_I16_MIN) 180 #define INT16_MAX _I16_MAX 181 #define INT32_MIN ((int32_t)_I32_MIN) 182 #define INT32_MAX _I32_MAX 183 #define INT64_MIN ((int64_t)_I64_MIN) 184 #define INT64_MAX _I64_MAX 185 #define UINT8_MAX _UI8_MAX 186 #define UINT16_MAX _UI16_MAX 187 #define UINT32_MAX _UI32_MAX 188 #define UINT64_MAX _UI64_MAX 191 #define INT_LEAST8_MIN INT8_MIN 192 #define INT_LEAST8_MAX INT8_MAX 193 #define INT_LEAST16_MIN INT16_MIN 194 #define INT_LEAST16_MAX INT16_MAX 195 #define INT_LEAST32_MIN INT32_MIN 196 #define INT_LEAST32_MAX INT32_MAX 197 #define INT_LEAST64_MIN INT64_MIN 198 #define INT_LEAST64_MAX INT64_MAX 199 #define UINT_LEAST8_MAX UINT8_MAX 200 #define UINT_LEAST16_MAX UINT16_MAX 201 #define UINT_LEAST32_MAX UINT32_MAX 202 #define UINT_LEAST64_MAX UINT64_MAX 205 #define INT_FAST8_MIN INT8_MIN 206 #define INT_FAST8_MAX INT8_MAX 207 #define INT_FAST16_MIN INT16_MIN 208 #define INT_FAST16_MAX INT16_MAX 209 #define INT_FAST32_MIN INT32_MIN 210 #define INT_FAST32_MAX INT32_MAX 211 #define INT_FAST64_MIN INT64_MIN 212 #define INT_FAST64_MAX INT64_MAX 213 #define UINT_FAST8_MAX UINT8_MAX 214 #define UINT_FAST16_MAX UINT16_MAX 215 #define UINT_FAST32_MAX UINT32_MAX 216 #define UINT_FAST64_MAX UINT64_MAX 220 #define INTPTR_MIN INT64_MIN 221 #define INTPTR_MAX INT64_MAX 222 #define UINTPTR_MAX UINT64_MAX 224 #define INTPTR_MIN INT32_MIN 225 #define INTPTR_MAX INT32_MAX 226 #define UINTPTR_MAX UINT32_MAX 230 #define INTMAX_MIN INT64_MIN 231 #define INTMAX_MAX INT64_MAX 232 #define UINTMAX_MAX UINT64_MAX 237 #define PTRDIFF_MIN _I64_MIN 238 #define PTRDIFF_MAX _I64_MAX 240 #define PTRDIFF_MIN _I32_MIN 241 #define PTRDIFF_MAX _I32_MAX 244 #define SIG_ATOMIC_MIN INT_MIN 245 #define SIG_ATOMIC_MAX INT_MAX 247 #ifndef SIZE_MAX // [ 249 #define SIZE_MAX _UI64_MAX 251 #define SIZE_MAX _UI32_MAX 256 #ifndef WCHAR_MIN // [ 258 #endif // WCHAR_MIN ] 259 #ifndef WCHAR_MAX // [ 260 #define WCHAR_MAX _UI16_MAX 261 #endif // WCHAR_MAX ] 264 #define WINT_MAX _UI16_MAX 266 #endif // __STDC_LIMIT_MACROS ] 270 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 274 #define INT8_C(val) val##i8 275 #define INT16_C(val) val##i16 276 #define INT32_C(val) val##i32 277 #define INT64_C(val) val##i64 279 #define UINT8_C(val) val##ui8 280 #define UINT16_C(val) val##ui16 281 #define UINT32_C(val) val##ui32 282 #define UINT64_C(val) val##ui64 287 #ifndef INTMAX_C // [ 288 #define INTMAX_C INT64_C 290 #ifndef UINTMAX_C // [ 291 #define UINTMAX_C UINT64_C 292 #endif // UINTMAX_C ] 294 #endif // __STDC_CONSTANT_MACROS ] 296 #endif // _MSC_VER >= 1600 ] 298 #endif // _MSC_STDINT_H_ ]
_W64 unsigned int uintptr_t
unsigned __int64 uint64_t