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) || \ 54 defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 67 #define INT8_C(val) val##i8 68 #define INT16_C(val) val##i16 69 #define INT32_C(val) val##i32 70 #define INT64_C(val) val##i64 72 #define UINT8_C(val) val##ui8 73 #define UINT16_C(val) val##ui16 74 #define UINT32_C(val) val##ui32 75 #define UINT64_C(val) val##ui64 81 #define INTMAX_C INT64_C 83 #ifndef UINTMAX_C // [ 84 #define UINTMAX_C UINT64_C 87 #endif // __STDC_CONSTANT_MACROS ] 89 #else // ] _MSC_VER >= 1700 [ 97 #if defined(__cplusplus) && !defined(_M_ARM) 101 #if defined(__cplusplus) && !defined(_M_ARM) 107 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 121 #if (_MSC_VER < 1300) 129 typedef signed __int8
int8_t;
130 typedef signed __int16
int16_t;
131 typedef signed __int32
int32_t;
132 typedef unsigned __int8
uint8_t;
174 #if !defined(__cplusplus) || \ 175 defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and 179 #define INT8_MIN ((int8_t)_I8_MIN) 180 #define INT8_MAX _I8_MAX 181 #define INT16_MIN ((int16_t)_I16_MIN) 182 #define INT16_MAX _I16_MAX 183 #define INT32_MIN ((int32_t)_I32_MIN) 184 #define INT32_MAX _I32_MAX 185 #define INT64_MIN ((int64_t)_I64_MIN) 186 #define INT64_MAX _I64_MAX 187 #define UINT8_MAX _UI8_MAX 188 #define UINT16_MAX _UI16_MAX 189 #define UINT32_MAX _UI32_MAX 190 #define UINT64_MAX _UI64_MAX 193 #define INT_LEAST8_MIN INT8_MIN 194 #define INT_LEAST8_MAX INT8_MAX 195 #define INT_LEAST16_MIN INT16_MIN 196 #define INT_LEAST16_MAX INT16_MAX 197 #define INT_LEAST32_MIN INT32_MIN 198 #define INT_LEAST32_MAX INT32_MAX 199 #define INT_LEAST64_MIN INT64_MIN 200 #define INT_LEAST64_MAX INT64_MAX 201 #define UINT_LEAST8_MAX UINT8_MAX 202 #define UINT_LEAST16_MAX UINT16_MAX 203 #define UINT_LEAST32_MAX UINT32_MAX 204 #define UINT_LEAST64_MAX UINT64_MAX 207 #define INT_FAST8_MIN INT8_MIN 208 #define INT_FAST8_MAX INT8_MAX 209 #define INT_FAST16_MIN INT16_MIN 210 #define INT_FAST16_MAX INT16_MAX 211 #define INT_FAST32_MIN INT32_MIN 212 #define INT_FAST32_MAX INT32_MAX 213 #define INT_FAST64_MIN INT64_MIN 214 #define INT_FAST64_MAX INT64_MAX 215 #define UINT_FAST8_MAX UINT8_MAX 216 #define UINT_FAST16_MAX UINT16_MAX 217 #define UINT_FAST32_MAX UINT32_MAX 218 #define UINT_FAST64_MAX UINT64_MAX 222 #define INTPTR_MIN INT64_MIN 223 #define INTPTR_MAX INT64_MAX 224 #define UINTPTR_MAX UINT64_MAX 226 #define INTPTR_MIN INT32_MIN 227 #define INTPTR_MAX INT32_MAX 228 #define UINTPTR_MAX UINT32_MAX 232 #define INTMAX_MIN INT64_MIN 233 #define INTMAX_MAX INT64_MAX 234 #define UINTMAX_MAX UINT64_MAX 239 #define PTRDIFF_MIN _I64_MIN 240 #define PTRDIFF_MAX _I64_MAX 242 #define PTRDIFF_MIN _I32_MIN 243 #define PTRDIFF_MAX _I32_MAX 246 #define SIG_ATOMIC_MIN INT_MIN 247 #define SIG_ATOMIC_MAX INT_MAX 249 #ifndef SIZE_MAX // [ 251 #define SIZE_MAX _UI64_MAX 253 #define SIZE_MAX _UI32_MAX 258 #ifndef WCHAR_MIN // [ 260 #endif // WCHAR_MIN ] 261 #ifndef WCHAR_MAX // [ 262 #define WCHAR_MAX _UI16_MAX 263 #endif // WCHAR_MAX ] 266 #define WINT_MAX _UI16_MAX 268 #endif // __STDC_LIMIT_MACROS ] 272 #if !defined(__cplusplus) || \ 273 defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 277 #define INT8_C(val) val##i8 278 #define INT16_C(val) val##i16 279 #define INT32_C(val) val##i32 280 #define INT64_C(val) val##i64 282 #define UINT8_C(val) val##ui8 283 #define UINT16_C(val) val##ui16 284 #define UINT32_C(val) val##ui32 285 #define UINT64_C(val) val##ui64 290 #ifndef INTMAX_C // [ 291 #define INTMAX_C INT64_C 293 #ifndef UINTMAX_C // [ 294 #define UINTMAX_C UINT64_C 295 #endif // UINTMAX_C ] 297 #endif // __STDC_CONSTANT_MACROS ] 299 #endif // _MSC_VER >= 1600 ] 301 #endif // _MSC_STDINT_H_ ]
_W64 unsigned int uintptr_t
unsigned __int64 uint64_t