33 #error "Use this header only with Microsoft Visual C++ compilers!"
36 #ifndef _MSC_STDINT_H_
37 #define _MSC_STDINT_H_
59 # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
82 typedef signed __int8
int8_t;
85 typedef unsigned __int8
uint8_t;
129 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
132 #define INT8_MIN ((int8_t)_I8_MIN)
133 #define INT8_MAX _I8_MAX
134 #define INT16_MIN ((int16_t)_I16_MIN)
135 #define INT16_MAX _I16_MAX
136 #define INT32_MIN ((int32_t)_I32_MIN)
137 #define INT32_MAX _I32_MAX
138 #define INT64_MIN ((int64_t)_I64_MIN)
139 #define INT64_MAX _I64_MAX
140 #define UINT8_MAX _UI8_MAX
141 #define UINT16_MAX _UI16_MAX
142 #define UINT32_MAX _UI32_MAX
143 #define UINT64_MAX _UI64_MAX
146 #define INT_LEAST8_MIN INT8_MIN
147 #define INT_LEAST8_MAX INT8_MAX
148 #define INT_LEAST16_MIN INT16_MIN
149 #define INT_LEAST16_MAX INT16_MAX
150 #define INT_LEAST32_MIN INT32_MIN
151 #define INT_LEAST32_MAX INT32_MAX
152 #define INT_LEAST64_MIN INT64_MIN
153 #define INT_LEAST64_MAX INT64_MAX
154 #define UINT_LEAST8_MAX UINT8_MAX
155 #define UINT_LEAST16_MAX UINT16_MAX
156 #define UINT_LEAST32_MAX UINT32_MAX
157 #define UINT_LEAST64_MAX UINT64_MAX
160 #define INT_FAST8_MIN INT8_MIN
161 #define INT_FAST8_MAX INT8_MAX
162 #define INT_FAST16_MIN INT16_MIN
163 #define INT_FAST16_MAX INT16_MAX
164 #define INT_FAST32_MIN INT32_MIN
165 #define INT_FAST32_MAX INT32_MAX
166 #define INT_FAST64_MIN INT64_MIN
167 #define INT_FAST64_MAX INT64_MAX
168 #define UINT_FAST8_MAX UINT8_MAX
169 #define UINT_FAST16_MAX UINT16_MAX
170 #define UINT_FAST32_MAX UINT32_MAX
171 #define UINT_FAST64_MAX UINT64_MAX
175 # define INTPTR_MIN INT64_MIN
176 # define INTPTR_MAX INT64_MAX
177 # define UINTPTR_MAX UINT64_MAX
179 # define INTPTR_MIN INT32_MIN
180 # define INTPTR_MAX INT32_MAX
181 # define UINTPTR_MAX UINT32_MAX
185 #define INTMAX_MIN INT64_MIN
186 #define INTMAX_MAX INT64_MAX
187 #define UINTMAX_MAX UINT64_MAX
192 # define PTRDIFF_MIN _I64_MIN
193 # define PTRDIFF_MAX _I64_MAX
195 # define PTRDIFF_MIN _I32_MIN
196 # define PTRDIFF_MAX _I32_MAX
199 #define SIG_ATOMIC_MIN INT_MIN
200 #define SIG_ATOMIC_MAX INT_MAX
204 # define SIZE_MAX _UI64_MAX
206 # define SIZE_MAX _UI32_MAX
215 # define WCHAR_MAX _UI16_MAX
219 #define WINT_MAX _UI16_MAX
226 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
230 #define INT8_C(val) val##i8
231 #define INT16_C(val) val##i16
232 #define INT32_C(val) val##i32
233 #define INT64_C(val) val##i64
235 #define UINT8_C(val) val##ui8
236 #define UINT16_C(val) val##ui16
237 #define UINT32_C(val) val##ui32
238 #define UINT64_C(val) val##ui64
241 #define INTMAX_C INT64_C
242 #define UINTMAX_C UINT64_C
unsigned __int64 uint64_t