38#error "Use this header only with Microsoft Visual C++ compilers!"
52#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
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
82# define UINTMAX_C UINT64_C
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
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)
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
250# define SIZE_MAX _UI64_MAX
252# define SIZE_MAX _UI32_MAX
261# define WCHAR_MAX _UI16_MAX
265#define WINT_MAX _UI16_MAX
272#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
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
290# define INTMAX_C INT64_C
293# define UINTMAX_C UINT64_C
_W64 unsigned int uintptr_t
unsigned __int64 uint64_t