38 #error "Use this header only with Microsoft Visual C++ compilers!" 41 #ifndef _MSC_STDINT_H_ // [ 42 #define _MSC_STDINT_H_ 49 #if _MSC_VER >= 1600 // [ 52 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 65 #define INT8_C(val) val##i8 66 #define INT16_C(val) val##i16 67 #define INT32_C(val) val##i32 68 #define INT64_C(val) val##i64 70 #define UINT8_C(val) val##ui8 71 #define UINT16_C(val) val##ui16 72 #define UINT32_C(val) val##ui32 73 #define UINT64_C(val) val##ui64 79 # define INTMAX_C INT64_C 81 #ifndef UINTMAX_C // [ 82 # define UINTMAX_C UINT64_C 85 #endif // __STDC_CONSTANT_MACROS ] 87 #else // ] _MSC_VER >= 1700 [ 95 #if defined(__cplusplus) && !defined(_M_ARM) 99 #if defined(__cplusplus) && !defined(_M_ARM) 105 # 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;
175 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and footnote 221 at page 259 178 #define INT8_MIN ((int8_t)_I8_MIN) 179 #define INT8_MAX _I8_MAX 180 #define INT16_MIN ((int16_t)_I16_MIN) 181 #define INT16_MAX _I16_MAX 182 #define INT32_MIN ((int32_t)_I32_MIN) 183 #define INT32_MAX _I32_MAX 184 #define INT64_MIN ((int64_t)_I64_MIN) 185 #define INT64_MAX _I64_MAX 186 #define UINT8_MAX _UI8_MAX 187 #define UINT16_MAX _UI16_MAX 188 #define UINT32_MAX _UI32_MAX 189 #define UINT64_MAX _UI64_MAX 192 #define INT_LEAST8_MIN INT8_MIN 193 #define INT_LEAST8_MAX INT8_MAX 194 #define INT_LEAST16_MIN INT16_MIN 195 #define INT_LEAST16_MAX INT16_MAX 196 #define INT_LEAST32_MIN INT32_MIN 197 #define INT_LEAST32_MAX INT32_MAX 198 #define INT_LEAST64_MIN INT64_MIN 199 #define INT_LEAST64_MAX INT64_MAX 200 #define UINT_LEAST8_MAX UINT8_MAX 201 #define UINT_LEAST16_MAX UINT16_MAX 202 #define UINT_LEAST32_MAX UINT32_MAX 203 #define UINT_LEAST64_MAX UINT64_MAX 206 #define INT_FAST8_MIN INT8_MIN 207 #define INT_FAST8_MAX INT8_MAX 208 #define INT_FAST16_MIN INT16_MIN 209 #define INT_FAST16_MAX INT16_MAX 210 #define INT_FAST32_MIN INT32_MIN 211 #define INT_FAST32_MAX INT32_MAX 212 #define INT_FAST64_MIN INT64_MIN 213 #define INT_FAST64_MAX INT64_MAX 214 #define UINT_FAST8_MAX UINT8_MAX 215 #define UINT_FAST16_MAX UINT16_MAX 216 #define UINT_FAST32_MAX UINT32_MAX 217 #define UINT_FAST64_MAX UINT64_MAX 221 # define INTPTR_MIN INT64_MIN 222 # define INTPTR_MAX INT64_MAX 223 # define UINTPTR_MAX UINT64_MAX 225 # define INTPTR_MIN INT32_MIN 226 # define INTPTR_MAX INT32_MAX 227 # define UINTPTR_MAX UINT32_MAX 231 #define INTMAX_MIN INT64_MIN 232 #define INTMAX_MAX INT64_MAX 233 #define UINTMAX_MAX UINT64_MAX 238 # define PTRDIFF_MIN _I64_MIN 239 # define PTRDIFF_MAX _I64_MAX 241 # define PTRDIFF_MIN _I32_MIN 242 # define PTRDIFF_MAX _I32_MAX 245 #define SIG_ATOMIC_MIN INT_MIN 246 #define SIG_ATOMIC_MAX INT_MAX 248 #ifndef SIZE_MAX // [ 250 # define SIZE_MAX _UI64_MAX 252 # define SIZE_MAX _UI32_MAX 257 #ifndef WCHAR_MIN // [ 259 #endif // WCHAR_MIN ] 260 #ifndef WCHAR_MAX // [ 261 # define WCHAR_MAX _UI16_MAX 262 #endif // WCHAR_MAX ] 265 #define WINT_MAX _UI16_MAX 267 #endif // __STDC_LIMIT_MACROS ] 272 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260 276 #define INT8_C(val) val##i8 277 #define INT16_C(val) val##i16 278 #define INT32_C(val) val##i32 279 #define INT64_C(val) val##i64 281 #define UINT8_C(val) val##ui8 282 #define UINT16_C(val) val##ui16 283 #define UINT32_C(val) val##ui32 284 #define UINT64_C(val) val##ui64 289 #ifndef INTMAX_C // [ 290 # define INTMAX_C INT64_C 292 #ifndef UINTMAX_C // [ 293 # define UINTMAX_C UINT64_C 294 #endif // UINTMAX_C ] 296 #endif // __STDC_CONSTANT_MACROS ] 298 #endif // _MSC_VER >= 1600 ] 300 #endif // _MSC_STDINT_H_ ]
_W64 unsigned int uintptr_t
unsigned __int64 uint64_t