21 (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L)\ 22 || (defined (__WATCOMC__) && (defined (_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250))\ 24 ) && !defined (_PSTDINT_H_INCLUDED) 27 #define _PSTDINT_H_INCLUDED 28 # ifndef PRINTF_INT64_MODIFIER 29 # define PRINTF_INT64_MODIFIER "ll" 31 # ifndef PRINTF_INT32_MODIFIER 32 # define PRINTF_INT32_MODIFIER "l" 34 # ifndef PRINTF_INT16_MODIFIER 35 # define PRINTF_INT16_MODIFIER "h" 37 # ifndef PRINTF_INTMAX_MODIFIER 38 # define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 40 # ifndef PRINTF_INT64_HEX_WIDTH 41 # define PRINTF_INT64_HEX_WIDTH "16" 43 # ifndef PRINTF_INT32_HEX_WIDTH 44 # define PRINTF_INT32_HEX_WIDTH "8" 46 # ifndef PRINTF_INT16_HEX_WIDTH 47 # define PRINTF_INT16_HEX_WIDTH "4" 49 # ifndef PRINTF_INT8_HEX_WIDTH 50 # define PRINTF_INT8_HEX_WIDTH "2" 52 # ifndef PRINTF_INT64_DEC_WIDTH 53 # define PRINTF_INT64_DEC_WIDTH "20" 55 # ifndef PRINTF_INT32_DEC_WIDTH 56 # define PRINTF_INT32_DEC_WIDTH "10" 58 # ifndef PRINTF_INT16_DEC_WIDTH 59 # define PRINTF_INT16_DEC_WIDTH "5" 61 # ifndef PRINTF_INT8_DEC_WIDTH 62 # define PRINTF_INT8_DEC_WIDTH "3" 64 # ifndef PRINTF_INTMAX_HEX_WIDTH 65 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 67 # ifndef PRINTF_INTMAX_DEC_WIDTH 68 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 76 # if defined (__WATCOMC__) && __WATCOMC__ >= 1250 77 # if !defined (INT64_C) 78 # define INT64_C(x) (x + (INT64_MAX - INT64_MAX)) 80 # if !defined (UINT64_C) 81 # define UINT64_C(x) (x + (UINT64_MAX - UINT64_MAX)) 83 # if !defined (INT32_C) 84 # define INT32_C(x) (x + (INT32_MAX - INT32_MAX)) 86 # if !defined (UINT32_C) 87 # define UINT32_C(x) (x + (UINT32_MAX - UINT32_MAX)) 89 # if !defined (INT16_C) 90 # define INT16_C(x) (x) 92 # if !defined (UINT16_C) 93 # define UINT16_C(x) (x) 95 # if !defined (INT8_C) 96 # define INT8_C(x) (x) 98 # if !defined (UINT8_C) 99 # define UINT8_C(x) (x) 101 # if !defined (UINT64_MAX) 102 # define UINT64_MAX 18446744073709551615ULL 104 # if !defined (INT64_MAX) 105 # define INT64_MAX 9223372036854775807LL 107 # if !defined (UINT32_MAX) 108 # define UINT32_MAX 4294967295UL 110 # if !defined (INT32_MAX) 111 # define INT32_MAX 2147483647L 113 # if !defined (INTMAX_MAX) 114 # define INTMAX_MAX INT64_MAX 116 # if !defined (INTMAX_MIN) 117 # define INTMAX_MIN INT64_MIN 122 #ifndef _PSTDINT_H_INCLUDED 123 #define _PSTDINT_H_INCLUDED 126 # define SIZE_MAX (~(size_t)0) 136 # define UINT8_MAX 0xff 139 # if (UCHAR_MAX == UINT8_MAX) || defined (S_SPLINT_S) 141 # define UINT8_C(v) ((uint8_t) v) 143 # error "Platform not supported" 148 # define INT8_MAX 0x7f 151 # define INT8_MIN INT8_C(0x80) 154 # if (SCHAR_MAX == INT8_MAX) || defined (S_SPLINT_S) 155 typedef signed char int8_t;
156 # define INT8_C(v) ((int8_t) v) 158 # error "Platform not supported" 163 # define UINT16_MAX 0xffff 166 #if (UINT_MAX == UINT16_MAX) || defined (S_SPLINT_S) 168 # ifndef PRINTF_INT16_MODIFIER 169 # define PRINTF_INT16_MODIFIER "" 171 # define UINT16_C(v) ((uint16_t) (v)) 172 #elif (USHRT_MAX == UINT16_MAX) 174 # define UINT16_C(v) ((uint16_t) (v)) 175 # ifndef PRINTF_INT16_MODIFIER 176 # define PRINTF_INT16_MODIFIER "h" 179 #error "Platform not supported" 184 # define INT16_MAX 0x7fff 187 # define INT16_MIN INT16_C(0x8000) 190 #if (INT_MAX == INT16_MAX) || defined (S_SPLINT_S) 192 # define INT16_C(v) ((int16_t) (v)) 193 # ifndef PRINTF_INT16_MODIFIER 194 # define PRINTF_INT16_MODIFIER "" 196 #elif (SHRT_MAX == INT16_MAX) 198 # define INT16_C(v) ((int16_t) (v)) 199 # ifndef PRINTF_INT16_MODIFIER 200 # define PRINTF_INT16_MODIFIER "h" 203 #error "Platform not supported" 208 # define UINT32_MAX (0xffffffffUL) 211 #if (ULONG_MAX == UINT32_MAX) || defined (S_SPLINT_S) 213 # define UINT32_C(v) v ## UL 214 # ifndef PRINTF_INT32_MODIFIER 215 # define PRINTF_INT32_MODIFIER "l" 217 #elif (UINT_MAX == UINT32_MAX) 219 # ifndef PRINTF_INT32_MODIFIER 220 # define PRINTF_INT32_MODIFIER "" 222 # define UINT32_C(v) v ## U 223 #elif (USHRT_MAX == UINT32_MAX) 225 # define UINT32_C(v) ((unsigned short) (v)) 226 # ifndef PRINTF_INT32_MODIFIER 227 # define PRINTF_INT32_MODIFIER "" 230 #error "Platform not supported" 235 # define INT32_MAX (0x7fffffffL) 238 # define INT32_MIN INT32_C(0x80000000) 241 #if (LONG_MAX == INT32_MAX) || defined (S_SPLINT_S) 243 # define INT32_C(v) v ## L 244 # ifndef PRINTF_INT32_MODIFIER 245 # define PRINTF_INT32_MODIFIER "l" 247 #elif (INT_MAX == INT32_MAX) 249 # define INT32_C(v) v 250 # ifndef PRINTF_INT32_MODIFIER 251 # define PRINTF_INT32_MODIFIER "" 253 #elif (SHRT_MAX == INT32_MAX) 255 # define INT32_C(v) ((short) (v)) 256 # ifndef PRINTF_INT32_MODIFIER 257 # define PRINTF_INT32_MODIFIER "" 260 #error "Platform not supported" 271 #undef stdint_int64_defined 272 #if (defined(__STDC__) && defined(__STDC_VERSION__)) || defined (S_SPLINT_S) 273 # if (__STDC__ && __STDC_VERSION >= 199901L) || defined (S_SPLINT_S) 274 # define stdint_int64_defined 276 typedef unsigned long long uint64_t;
277 # define UINT64_C(v) v ## ULL 278 # define INT64_C(v) v ## LL 279 # ifndef PRINTF_INT64_MODIFIER 280 # define PRINTF_INT64_MODIFIER "ll" 285 #if !defined (stdint_int64_defined) 286 # if defined(__GNUC__) 287 # define stdint_int64_defined 288 __extension__
typedef long long int64_t;
289 __extension__
typedef unsigned long long uint64_t;
290 # define UINT64_C(v) v ## ULL 291 # define INT64_C(v) v ## LL 292 # ifndef PRINTF_INT64_MODIFIER 293 # define PRINTF_INT64_MODIFIER "ll" 295 # elif defined(__MWERKS__) || defined (__SUNPRO_C) || defined (__SUNPRO_CC) || defined (__APPLE_CC__) || defined (_LONG_LONG) || defined (_CRAYC) || defined (S_SPLINT_S) 296 # define stdint_int64_defined 298 typedef unsigned long long uint64_t;
299 # define UINT64_C(v) v ## ULL 300 # define INT64_C(v) v ## LL 301 # ifndef PRINTF_INT64_MODIFIER 302 # define PRINTF_INT64_MODIFIER "ll" 304 # elif (defined(__WATCOMC__) && defined(__WATCOM_INT64__)) || (defined(_MSC_VER) && _INTEGRAL_MAX_BITS >= 64) || (defined (__BORLANDC__) && __BORLANDC__ > 0x460) || defined (__alpha) || defined (__DECC) 305 # define stdint_int64_defined 308 # define UINT64_C(v) v ## UI64 309 # define INT64_C(v) v ## I64 310 # ifndef PRINTF_INT64_MODIFIER 311 # define PRINTF_INT64_MODIFIER "I64" 316 #if !defined (LONG_LONG_MAX) && defined (INT64_C) 317 # define LONG_LONG_MAX INT64_C (9223372036854775807) 319 #ifndef ULONG_LONG_MAX 320 # define ULONG_LONG_MAX UINT64_C (18446744073709551615) 323 #if !defined (INT64_MAX) && defined (INT64_C) 324 # define INT64_MAX INT64_C (9223372036854775807) 326 #if !defined (INT64_MIN) && defined (INT64_C) 327 # define INT64_MIN INT64_C (-9223372036854775808) 329 #if !defined (UINT64_MAX) && defined (INT64_C) 330 # define UINT64_MAX UINT64_C (18446744073709551615) 337 #ifndef PRINTF_INT64_HEX_WIDTH 338 # define PRINTF_INT64_HEX_WIDTH "16" 340 #ifndef PRINTF_INT32_HEX_WIDTH 341 # define PRINTF_INT32_HEX_WIDTH "8" 343 #ifndef PRINTF_INT16_HEX_WIDTH 344 # define PRINTF_INT16_HEX_WIDTH "4" 346 #ifndef PRINTF_INT8_HEX_WIDTH 347 # define PRINTF_INT8_HEX_WIDTH "2" 350 #ifndef PRINTF_INT64_DEC_WIDTH 351 # define PRINTF_INT64_DEC_WIDTH "20" 353 #ifndef PRINTF_INT32_DEC_WIDTH 354 # define PRINTF_INT32_DEC_WIDTH "10" 356 #ifndef PRINTF_INT16_DEC_WIDTH 357 # define PRINTF_INT16_DEC_WIDTH "5" 359 #ifndef PRINTF_INT8_DEC_WIDTH 360 # define PRINTF_INT8_DEC_WIDTH "3" 369 #ifdef stdint_int64_defined 372 # define INTMAX_MAX INT64_MAX 373 # define INTMAX_MIN INT64_MIN 374 # define UINTMAX_MAX UINT64_MAX 375 # define UINTMAX_C(v) UINT64_C(v) 376 # define INTMAX_C(v) INT64_C(v) 377 # ifndef PRINTF_INTMAX_MODIFIER 378 # define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 380 # ifndef PRINTF_INTMAX_HEX_WIDTH 381 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 383 # ifndef PRINTF_INTMAX_DEC_WIDTH 384 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 389 # define INTMAX_MAX INT32_MAX 390 # define UINTMAX_MAX UINT32_MAX 391 # define UINTMAX_C(v) UINT32_C(v) 392 # define INTMAX_C(v) INT32_C(v) 393 # ifndef PRINTF_INTMAX_MODIFIER 394 # define PRINTF_INTMAX_MODIFIER PRINTF_INT32_MODIFIER 396 # ifndef PRINTF_INTMAX_HEX_WIDTH 397 # define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT32_HEX_WIDTH 399 # ifndef PRINTF_INTMAX_DEC_WIDTH 400 # define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT32_DEC_WIDTH 411 #ifndef stdint_least_defined 418 # define PRINTF_LEAST32_MODIFIER PRINTF_INT32_MODIFIER 419 # define PRINTF_LEAST16_MODIFIER PRINTF_INT16_MODIFIER 420 # define UINT_LEAST8_MAX UINT8_MAX 421 # define INT_LEAST8_MAX INT8_MAX 422 # define UINT_LEAST16_MAX UINT16_MAX 423 # define INT_LEAST16_MAX INT16_MAX 424 # define UINT_LEAST32_MAX UINT32_MAX 425 # define INT_LEAST32_MAX INT32_MAX 426 # define INT_LEAST8_MIN INT8_MIN 427 # define INT_LEAST16_MIN INT16_MIN 428 # define INT_LEAST32_MIN INT32_MIN 429 # ifdef stdint_int64_defined 432 # define PRINTF_LEAST64_MODIFIER PRINTF_INT64_MODIFIER 433 # define UINT_LEAST64_MAX UINT64_MAX 434 # define INT_LEAST64_MAX INT64_MAX 435 # define INT_LEAST64_MIN INT64_MIN 438 #undef stdint_least_defined 457 #define UINT_FAST8_MAX UINT_LEAST8_MAX 458 #define INT_FAST8_MAX INT_LEAST8_MAX 459 #define UINT_FAST16_MAX UINT_LEAST16_MAX 460 #define INT_FAST16_MAX INT_LEAST16_MAX 461 #define UINT_FAST32_MAX UINT_LEAST32_MAX 462 #define INT_FAST32_MAX INT_LEAST32_MAX 463 #define INT_FAST8_MIN INT_LEAST8_MIN 464 #define INT_FAST16_MIN INT_LEAST16_MIN 465 #define INT_FAST32_MIN INT_LEAST32_MIN 466 #ifdef stdint_int64_defined 467 typedef int_least64_t int_fast64_t;
468 typedef uint_least64_t uint_fast64_t;
469 # define UINT_FAST64_MAX UINT_LEAST64_MAX 470 # define INT_FAST64_MAX INT_LEAST64_MAX 471 # define INT_FAST64_MIN INT_LEAST64_MIN 474 #undef stdint_int64_defined 481 #if defined(__WATCOMC__) || defined(_MSC_VER) || defined (__GNUC__) 487 # define WCHAR_MAX ((wchar_t)-1) 496 #if defined (_MSC_VER) && defined (_UINTPTR_T_DEFINED) 497 # define STDINT_H_UINTPTR_T_DEFINED 500 #ifndef STDINT_H_UINTPTR_T_DEFINED 501 # if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (_WIN64) 502 # define stdint_intptr_bits 64 503 # elif defined (__WATCOMC__) || defined (__TURBOC__) 504 # if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__) 505 # define stdint_intptr_bits 16 507 # define stdint_intptr_bits 32 509 # elif defined (__i386__) || defined (_WIN32) || defined (WIN32) 510 # define stdint_intptr_bits 32 511 # elif defined (__INTEL_COMPILER) 515 # ifdef stdint_intptr_bits 516 # define stdint_intptr_glue3_i(a,b,c) a##b##c 517 # define stdint_intptr_glue3(a,b,c) stdint_intptr_glue3_i(a,b,c) 518 # ifndef PRINTF_INTPTR_MODIFIER 519 # define PRINTF_INTPTR_MODIFIER stdint_intptr_glue3(PRINTF_INT,stdint_intptr_bits,_MODIFIER) 522 # define PTRDIFF_MAX stdint_intptr_glue3(INT,stdint_intptr_bits,_MAX) 525 # define PTRDIFF_MIN stdint_intptr_glue3(INT,stdint_intptr_bits,_MIN) 528 # define UINTPTR_MAX stdint_intptr_glue3(UINT,stdint_intptr_bits,_MAX) 531 # define INTPTR_MAX stdint_intptr_glue3(INT,stdint_intptr_bits,_MAX) 534 # define INTPTR_MIN stdint_intptr_glue3(INT,stdint_intptr_bits,_MIN) 537 # define INTPTR_C(x) stdint_intptr_glue3(INT,stdint_intptr_bits,_C)(x) 540 # define UINTPTR_C(x) stdint_intptr_glue3(UINT,stdint_intptr_bits,_C)(x) 549 # define STDINT_H_UINTPTR_T_DEFINED 556 #ifndef SIG_ATOMIC_MAX 557 # define SIG_ATOMIC_MAX ((((sig_atomic_t) 1) << (sizeof (sig_atomic_t)*CHAR_BIT-1)) - 1)
#define stdint_intptr_bits
unsigned __int16 uint16_t
int_least32_t int_fast32_t
uint_least8_t uint_fast8_t
int_least16_t int_fast16_t
#define stdint_intptr_glue3(a, b, c)
uint_least16_t uint_fast16_t
unsigned __int64 uint64_t
uint_least32_t uint_fast32_t
unsigned __int32 uint32_t