25 (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || \ 26 (defined(__WATCOMC__) && \ 27 (defined(_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250)) || \ 28 defined(__GNUC__)) && \ 29 !defined(_PSTDINT_H_INCLUDED) 32 #define _PSTDINT_H_INCLUDED 33 #ifndef PRINTF_INT64_MODIFIER 34 #define PRINTF_INT64_MODIFIER "ll" 36 #ifndef PRINTF_INT32_MODIFIER 37 #define PRINTF_INT32_MODIFIER "l" 39 #ifndef PRINTF_INT16_MODIFIER 40 #define PRINTF_INT16_MODIFIER "h" 42 #ifndef PRINTF_INTMAX_MODIFIER 43 #define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 45 #ifndef PRINTF_INT64_HEX_WIDTH 46 #define PRINTF_INT64_HEX_WIDTH "16" 48 #ifndef PRINTF_INT32_HEX_WIDTH 49 #define PRINTF_INT32_HEX_WIDTH "8" 51 #ifndef PRINTF_INT16_HEX_WIDTH 52 #define PRINTF_INT16_HEX_WIDTH "4" 54 #ifndef PRINTF_INT8_HEX_WIDTH 55 #define PRINTF_INT8_HEX_WIDTH "2" 57 #ifndef PRINTF_INT64_DEC_WIDTH 58 #define PRINTF_INT64_DEC_WIDTH "20" 60 #ifndef PRINTF_INT32_DEC_WIDTH 61 #define PRINTF_INT32_DEC_WIDTH "10" 63 #ifndef PRINTF_INT16_DEC_WIDTH 64 #define PRINTF_INT16_DEC_WIDTH "5" 66 #ifndef PRINTF_INT8_DEC_WIDTH 67 #define PRINTF_INT8_DEC_WIDTH "3" 69 #ifndef PRINTF_INTMAX_HEX_WIDTH 70 #define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 72 #ifndef PRINTF_INTMAX_DEC_WIDTH 73 #define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 81 #if defined(__WATCOMC__) && __WATCOMC__ >= 1250 83 #define INT64_C(x) (x + (INT64_MAX - INT64_MAX)) 85 #if !defined(UINT64_C) 86 #define UINT64_C(x) (x + (UINT64_MAX - UINT64_MAX)) 89 #define INT32_C(x) (x + (INT32_MAX - INT32_MAX)) 91 #if !defined(UINT32_C) 92 #define UINT32_C(x) (x + (UINT32_MAX - UINT32_MAX)) 95 #define INT16_C(x) (x) 97 #if !defined(UINT16_C) 98 #define UINT16_C(x) (x) 101 #define INT8_C(x) (x) 103 #if !defined(UINT8_C) 104 #define UINT8_C(x) (x) 106 #if !defined(UINT64_MAX) 107 #define UINT64_MAX 18446744073709551615ULL 109 #if !defined(INT64_MAX) 110 #define INT64_MAX 9223372036854775807LL 112 #if !defined(UINT32_MAX) 113 #define UINT32_MAX 4294967295UL 115 #if !defined(INT32_MAX) 116 #define INT32_MAX 2147483647L 118 #if !defined(INTMAX_MAX) 119 #define INTMAX_MAX INT64_MAX 121 #if !defined(INTMAX_MIN) 122 #define INTMAX_MIN INT64_MIN 127 #ifndef _PSTDINT_H_INCLUDED 128 #define _PSTDINT_H_INCLUDED 131 #define SIZE_MAX (~(size_t)0) 141 #define UINT8_MAX 0xff 144 #if (UCHAR_MAX == UINT8_MAX) || defined(S_SPLINT_S) 146 #define UINT8_C(v) ((uint8_t)v) 148 #error "Platform not supported" 153 #define INT8_MAX 0x7f 156 #define INT8_MIN INT8_C(0x80) 159 #if (SCHAR_MAX == INT8_MAX) || defined(S_SPLINT_S) 160 typedef signed char int8_t;
161 #define INT8_C(v) ((int8_t)v) 163 #error "Platform not supported" 168 #define UINT16_MAX 0xffff 171 #if (UINT_MAX == UINT16_MAX) || defined(S_SPLINT_S) 173 #ifndef PRINTF_INT16_MODIFIER 174 #define PRINTF_INT16_MODIFIER "" 176 #define UINT16_C(v) ((uint16_t)(v)) 177 #elif (USHRT_MAX == UINT16_MAX) 179 #define UINT16_C(v) ((uint16_t)(v)) 180 #ifndef PRINTF_INT16_MODIFIER 181 #define PRINTF_INT16_MODIFIER "h" 184 #error "Platform not supported" 189 #define INT16_MAX 0x7fff 192 #define INT16_MIN INT16_C(0x8000) 195 #if (INT_MAX == INT16_MAX) || defined(S_SPLINT_S) 197 #define INT16_C(v) ((int16_t)(v)) 198 #ifndef PRINTF_INT16_MODIFIER 199 #define PRINTF_INT16_MODIFIER "" 201 #elif (SHRT_MAX == INT16_MAX) 203 #define INT16_C(v) ((int16_t)(v)) 204 #ifndef PRINTF_INT16_MODIFIER 205 #define PRINTF_INT16_MODIFIER "h" 208 #error "Platform not supported" 213 #define UINT32_MAX (0xffffffffUL) 216 #if (ULONG_MAX == UINT32_MAX) || defined(S_SPLINT_S) 218 #define UINT32_C(v) v##UL 219 #ifndef PRINTF_INT32_MODIFIER 220 #define PRINTF_INT32_MODIFIER "l" 222 #elif (UINT_MAX == UINT32_MAX) 224 #ifndef PRINTF_INT32_MODIFIER 225 #define PRINTF_INT32_MODIFIER "" 227 #define UINT32_C(v) v##U 228 #elif (USHRT_MAX == UINT32_MAX) 230 #define UINT32_C(v) ((unsigned short)(v)) 231 #ifndef PRINTF_INT32_MODIFIER 232 #define PRINTF_INT32_MODIFIER "" 235 #error "Platform not supported" 240 #define INT32_MAX (0x7fffffffL) 243 #define INT32_MIN INT32_C(0x80000000) 246 #if (LONG_MAX == INT32_MAX) || defined(S_SPLINT_S) 248 #define INT32_C(v) v##L 249 #ifndef PRINTF_INT32_MODIFIER 250 #define PRINTF_INT32_MODIFIER "l" 252 #elif (INT_MAX == INT32_MAX) 255 #ifndef PRINTF_INT32_MODIFIER 256 #define PRINTF_INT32_MODIFIER "" 258 #elif (SHRT_MAX == INT32_MAX) 260 #define INT32_C(v) ((short)(v)) 261 #ifndef PRINTF_INT32_MODIFIER 262 #define PRINTF_INT32_MODIFIER "" 265 #error "Platform not supported" 276 #undef stdint_int64_defined 277 #if (defined(__STDC__) && defined(__STDC_VERSION__)) || defined(S_SPLINT_S) 278 #if (__STDC__ && __STDC_VERSION >= 199901L) || defined(S_SPLINT_S) 279 #define stdint_int64_defined 281 typedef unsigned long long uint64_t;
282 #define UINT64_C(v) v##ULL 283 #define INT64_C(v) v##LL 284 #ifndef PRINTF_INT64_MODIFIER 285 #define PRINTF_INT64_MODIFIER "ll" 290 #if !defined(stdint_int64_defined) 291 #if defined(__GNUC__) 292 #define stdint_int64_defined 293 __extension__
typedef long long int64_t;
294 __extension__
typedef unsigned long long uint64_t;
295 #define UINT64_C(v) v##ULL 296 #define INT64_C(v) v##LL 297 #ifndef PRINTF_INT64_MODIFIER 298 #define PRINTF_INT64_MODIFIER "ll" 300 #elif defined(__MWERKS__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) || \ 301 defined(__APPLE_CC__) || defined(_LONG_LONG) || defined(_CRAYC) || \ 303 #define stdint_int64_defined 305 typedef unsigned long long uint64_t;
306 #define UINT64_C(v) v##ULL 307 #define INT64_C(v) v##LL 308 #ifndef PRINTF_INT64_MODIFIER 309 #define PRINTF_INT64_MODIFIER "ll" 311 #elif (defined(__WATCOMC__) && defined(__WATCOM_INT64__)) || \ 312 (defined(_MSC_VER) && _INTEGRAL_MAX_BITS >= 64) || \ 313 (defined(__BORLANDC__) && __BORLANDC__ > 0x460) || defined(__alpha) || \ 315 #define stdint_int64_defined 318 #define UINT64_C(v) v##UI64 319 #define INT64_C(v) v##I64 320 #ifndef PRINTF_INT64_MODIFIER 321 #define PRINTF_INT64_MODIFIER "I64" 326 #if !defined(LONG_LONG_MAX) && defined(INT64_C) 327 #define LONG_LONG_MAX INT64_C(9223372036854775807) 329 #ifndef ULONG_LONG_MAX 330 #define ULONG_LONG_MAX UINT64_C(18446744073709551615) 333 #if !defined(INT64_MAX) && defined(INT64_C) 334 #define INT64_MAX INT64_C(9223372036854775807) 336 #if !defined(INT64_MIN) && defined(INT64_C) 337 #define INT64_MIN INT64_C(-9223372036854775808) 339 #if !defined(UINT64_MAX) && defined(INT64_C) 340 #define UINT64_MAX UINT64_C(18446744073709551615) 347 #ifndef PRINTF_INT64_HEX_WIDTH 348 #define PRINTF_INT64_HEX_WIDTH "16" 350 #ifndef PRINTF_INT32_HEX_WIDTH 351 #define PRINTF_INT32_HEX_WIDTH "8" 353 #ifndef PRINTF_INT16_HEX_WIDTH 354 #define PRINTF_INT16_HEX_WIDTH "4" 356 #ifndef PRINTF_INT8_HEX_WIDTH 357 #define PRINTF_INT8_HEX_WIDTH "2" 360 #ifndef PRINTF_INT64_DEC_WIDTH 361 #define PRINTF_INT64_DEC_WIDTH "20" 363 #ifndef PRINTF_INT32_DEC_WIDTH 364 #define PRINTF_INT32_DEC_WIDTH "10" 366 #ifndef PRINTF_INT16_DEC_WIDTH 367 #define PRINTF_INT16_DEC_WIDTH "5" 369 #ifndef PRINTF_INT8_DEC_WIDTH 370 #define PRINTF_INT8_DEC_WIDTH "3" 379 #ifdef stdint_int64_defined 382 #define INTMAX_MAX INT64_MAX 383 #define INTMAX_MIN INT64_MIN 384 #define UINTMAX_MAX UINT64_MAX 385 #define UINTMAX_C(v) UINT64_C(v) 386 #define INTMAX_C(v) INT64_C(v) 387 #ifndef PRINTF_INTMAX_MODIFIER 388 #define PRINTF_INTMAX_MODIFIER PRINTF_INT64_MODIFIER 390 #ifndef PRINTF_INTMAX_HEX_WIDTH 391 #define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT64_HEX_WIDTH 393 #ifndef PRINTF_INTMAX_DEC_WIDTH 394 #define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT64_DEC_WIDTH 399 #define INTMAX_MAX INT32_MAX 400 #define UINTMAX_MAX UINT32_MAX 401 #define UINTMAX_C(v) UINT32_C(v) 402 #define INTMAX_C(v) INT32_C(v) 403 #ifndef PRINTF_INTMAX_MODIFIER 404 #define PRINTF_INTMAX_MODIFIER PRINTF_INT32_MODIFIER 406 #ifndef PRINTF_INTMAX_HEX_WIDTH 407 #define PRINTF_INTMAX_HEX_WIDTH PRINTF_INT32_HEX_WIDTH 409 #ifndef PRINTF_INTMAX_DEC_WIDTH 410 #define PRINTF_INTMAX_DEC_WIDTH PRINTF_INT32_DEC_WIDTH 421 #ifndef stdint_least_defined 428 #define PRINTF_LEAST32_MODIFIER PRINTF_INT32_MODIFIER 429 #define PRINTF_LEAST16_MODIFIER PRINTF_INT16_MODIFIER 430 #define UINT_LEAST8_MAX UINT8_MAX 431 #define INT_LEAST8_MAX INT8_MAX 432 #define UINT_LEAST16_MAX UINT16_MAX 433 #define INT_LEAST16_MAX INT16_MAX 434 #define UINT_LEAST32_MAX UINT32_MAX 435 #define INT_LEAST32_MAX INT32_MAX 436 #define INT_LEAST8_MIN INT8_MIN 437 #define INT_LEAST16_MIN INT16_MIN 438 #define INT_LEAST32_MIN INT32_MIN 439 #ifdef stdint_int64_defined 442 #define PRINTF_LEAST64_MODIFIER PRINTF_INT64_MODIFIER 443 #define UINT_LEAST64_MAX UINT64_MAX 444 #define INT_LEAST64_MAX INT64_MAX 445 #define INT_LEAST64_MIN INT64_MIN 448 #undef stdint_least_defined 467 #define UINT_FAST8_MAX UINT_LEAST8_MAX 468 #define INT_FAST8_MAX INT_LEAST8_MAX 469 #define UINT_FAST16_MAX UINT_LEAST16_MAX 470 #define INT_FAST16_MAX INT_LEAST16_MAX 471 #define UINT_FAST32_MAX UINT_LEAST32_MAX 472 #define INT_FAST32_MAX INT_LEAST32_MAX 473 #define INT_FAST8_MIN INT_LEAST8_MIN 474 #define INT_FAST16_MIN INT_LEAST16_MIN 475 #define INT_FAST32_MIN INT_LEAST32_MIN 476 #ifdef stdint_int64_defined 477 typedef int_least64_t int_fast64_t;
478 typedef uint_least64_t uint_fast64_t;
479 #define UINT_FAST64_MAX UINT_LEAST64_MAX 480 #define INT_FAST64_MAX INT_LEAST64_MAX 481 #define INT_FAST64_MIN INT_LEAST64_MIN 484 #undef stdint_int64_defined 491 #if defined(__WATCOMC__) || defined(_MSC_VER) || defined(__GNUC__) 497 #define WCHAR_MAX ((wchar_t)-1) 506 #if defined(_MSC_VER) && defined(_UINTPTR_T_DEFINED) 507 #define STDINT_H_UINTPTR_T_DEFINED 510 #ifndef STDINT_H_UINTPTR_T_DEFINED 511 #if defined(__alpha__) || defined(__ia64__) || defined(__x86_64__) || \ 513 #define stdint_intptr_bits 64 514 #elif defined(__WATCOMC__) || defined(__TURBOC__) 515 #if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__) 516 #define stdint_intptr_bits 16 518 #define stdint_intptr_bits 32 520 #elif defined(__i386__) || defined(_WIN32) || defined(WIN32) 521 #define stdint_intptr_bits 32 522 #elif defined(__INTEL_COMPILER) 526 #ifdef stdint_intptr_bits 527 #define stdint_intptr_glue3_i(a, b, c) a##b##c 528 #define stdint_intptr_glue3(a, b, c) stdint_intptr_glue3_i(a, b, c) 529 #ifndef PRINTF_INTPTR_MODIFIER 530 #define PRINTF_INTPTR_MODIFIER \ 531 stdint_intptr_glue3(PRINTF_INT, stdint_intptr_bits, _MODIFIER) 534 #define PTRDIFF_MAX stdint_intptr_glue3(INT, stdint_intptr_bits, _MAX) 537 #define PTRDIFF_MIN stdint_intptr_glue3(INT, stdint_intptr_bits, _MIN) 540 #define UINTPTR_MAX stdint_intptr_glue3(UINT, stdint_intptr_bits, _MAX) 543 #define INTPTR_MAX stdint_intptr_glue3(INT, stdint_intptr_bits, _MAX) 546 #define INTPTR_MIN stdint_intptr_glue3(INT, stdint_intptr_bits, _MIN) 549 #define INTPTR_C(x) stdint_intptr_glue3(INT, stdint_intptr_bits, _C)(x) 552 #define UINTPTR_C(x) stdint_intptr_glue3(UINT, stdint_intptr_bits, _C)(x) 561 #define STDINT_H_UINTPTR_T_DEFINED 568 #ifndef SIG_ATOMIC_MAX 569 #define SIG_ATOMIC_MAX \ 570 ((((sig_atomic_t)1) << (sizeof(sig_atomic_t) * CHAR_BIT - 1)) - 1) int_least32_t int_fast32_t
unsigned __int16 uint16_t
int_least16_t int_fast16_t
uint_least16_t uint_fast16_t
#define stdint_intptr_glue3(a, b, c)
uint_least32_t uint_fast32_t
unsigned __int64 uint64_t
uint_least8_t uint_fast8_t
unsigned __int32 uint32_t
#define stdint_intptr_bits