123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637 |
- #ifndef _@GUARD_PREFIX@_STDINT_H
- #if __GNUC__ >= 3
- @PRAGMA_SYSTEM_HEADER@
- #endif
- @PRAGMA_COLUMNS@
- #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
- #if defined __ANDROID__ \
- && defined _SYS_TYPES_H_ && !defined __need_size_t
- # @INCLUDE_NEXT@ @NEXT_STDINT_H@
- #else
- #if @HAVE_STDINT_H@
- # if defined __sgi && ! defined __c99
-
- # define __STDINT_H__
- # endif
-
- # ifdef __cplusplus
- # ifndef __STDC_CONSTANT_MACROS
- # define __STDC_CONSTANT_MACROS 1
- # endif
- # ifndef __STDC_LIMIT_MACROS
- # define __STDC_LIMIT_MACROS 1
- # endif
- # endif
-
- # @INCLUDE_NEXT@ @NEXT_STDINT_H@
- #endif
- #if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H
- #define _@GUARD_PREFIX@_STDINT_H
- #if @HAVE_SYS_TYPES_H@ && ! defined _AIX
- # include <sys/types.h>
- #endif
- #include <limits.h>
- #if @HAVE_INTTYPES_H@
-
- # include <inttypes.h>
- #elif @HAVE_SYS_INTTYPES_H@
-
- # include <sys/inttypes.h>
- #endif
- #if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__
-
- # include <sys/bitypes.h>
- #endif
- #undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
- #define _STDINT_MIN(signed, bits, zero) \
- ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero))
- #define _STDINT_MAX(signed, bits, zero) \
- ((signed) \
- ? ~ _STDINT_MIN (signed, bits, zero) \
- :
- \
- ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
- #if !GNULIB_defined_stdint_types
- #undef int8_t
- #undef uint8_t
- typedef signed char gl_int8_t;
- typedef unsigned char gl_uint8_t;
- #define int8_t gl_int8_t
- #define uint8_t gl_uint8_t
- #undef int16_t
- #undef uint16_t
- typedef short int gl_int16_t;
- typedef unsigned short int gl_uint16_t;
- #define int16_t gl_int16_t
- #define uint16_t gl_uint16_t
- #undef int32_t
- #undef uint32_t
- typedef int gl_int32_t;
- typedef unsigned int gl_uint32_t;
- #define int32_t gl_int32_t
- #define uint32_t gl_uint32_t
- #ifdef INT64_MAX
- # define GL_INT64_T
- #else
- # if LONG_MAX >> 31 >> 31 == 1
- # undef int64_t
- typedef long int gl_int64_t;
- # define int64_t gl_int64_t
- # define GL_INT64_T
- # elif defined _MSC_VER
- # undef int64_t
- typedef __int64 gl_int64_t;
- # define int64_t gl_int64_t
- # define GL_INT64_T
- # elif @HAVE_LONG_LONG_INT@
- # undef int64_t
- typedef long long int gl_int64_t;
- # define int64_t gl_int64_t
- # define GL_INT64_T
- # endif
- #endif
- #ifdef UINT64_MAX
- # define GL_UINT64_T
- #else
- # if ULONG_MAX >> 31 >> 31 >> 1 == 1
- # undef uint64_t
- typedef unsigned long int gl_uint64_t;
- # define uint64_t gl_uint64_t
- # define GL_UINT64_T
- # elif defined _MSC_VER
- # undef uint64_t
- typedef unsigned __int64 gl_uint64_t;
- # define uint64_t gl_uint64_t
- # define GL_UINT64_T
- # elif @HAVE_UNSIGNED_LONG_LONG_INT@
- # undef uint64_t
- typedef unsigned long long int gl_uint64_t;
- # define uint64_t gl_uint64_t
- # define GL_UINT64_T
- # endif
- #endif
- #define _UINT8_T
- #define _UINT32_T
- #define _UINT64_T
- #undef int_least8_t
- #undef uint_least8_t
- #undef int_least16_t
- #undef uint_least16_t
- #undef int_least32_t
- #undef uint_least32_t
- #undef int_least64_t
- #undef uint_least64_t
- #define int_least8_t int8_t
- #define uint_least8_t uint8_t
- #define int_least16_t int16_t
- #define uint_least16_t uint16_t
- #define int_least32_t int32_t
- #define uint_least32_t uint32_t
- #ifdef GL_INT64_T
- # define int_least64_t int64_t
- #endif
- #ifdef GL_UINT64_T
- # define uint_least64_t uint64_t
- #endif
- #undef int_fast8_t
- #undef uint_fast8_t
- #undef int_fast16_t
- #undef uint_fast16_t
- #undef int_fast32_t
- #undef uint_fast32_t
- #undef int_fast64_t
- #undef uint_fast64_t
- typedef signed char gl_int_fast8_t;
- typedef unsigned char gl_uint_fast8_t;
- #ifdef __sun
- typedef int gl_int_fast32_t;
- typedef unsigned int gl_uint_fast32_t;
- #else
- typedef long int gl_int_fast32_t;
- typedef unsigned long int gl_uint_fast32_t;
- #endif
- typedef gl_int_fast32_t gl_int_fast16_t;
- typedef gl_uint_fast32_t gl_uint_fast16_t;
- #define int_fast8_t gl_int_fast8_t
- #define uint_fast8_t gl_uint_fast8_t
- #define int_fast16_t gl_int_fast16_t
- #define uint_fast16_t gl_uint_fast16_t
- #define int_fast32_t gl_int_fast32_t
- #define uint_fast32_t gl_uint_fast32_t
- #ifdef GL_INT64_T
- # define int_fast64_t int64_t
- #endif
- #ifdef GL_UINT64_T
- # define uint_fast64_t uint64_t
- #endif
- #undef intptr_t
- #undef uintptr_t
- typedef long int gl_intptr_t;
- typedef unsigned long int gl_uintptr_t;
- #define intptr_t gl_intptr_t
- #define uintptr_t gl_uintptr_t
- #ifndef INTMAX_MAX
- # undef INTMAX_C
- # undef intmax_t
- # if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
- typedef long long int gl_intmax_t;
- # define intmax_t gl_intmax_t
- # elif defined GL_INT64_T
- # define intmax_t int64_t
- # else
- typedef long int gl_intmax_t;
- # define intmax_t gl_intmax_t
- # endif
- #endif
- #ifndef UINTMAX_MAX
- # undef UINTMAX_C
- # undef uintmax_t
- # if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
- typedef unsigned long long int gl_uintmax_t;
- # define uintmax_t gl_uintmax_t
- # elif defined GL_UINT64_T
- # define uintmax_t uint64_t
- # else
- typedef unsigned long int gl_uintmax_t;
- # define uintmax_t gl_uintmax_t
- # endif
- #endif
- typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
- ? 1 : -1];
- #define GNULIB_defined_stdint_types 1
- #endif /* !GNULIB_defined_stdint_types */
- #undef INT8_MIN
- #undef INT8_MAX
- #undef UINT8_MAX
- #define INT8_MIN (~ INT8_MAX)
- #define INT8_MAX 127
- #define UINT8_MAX 255
- #undef INT16_MIN
- #undef INT16_MAX
- #undef UINT16_MAX
- #define INT16_MIN (~ INT16_MAX)
- #define INT16_MAX 32767
- #define UINT16_MAX 65535
- #undef INT32_MIN
- #undef INT32_MAX
- #undef UINT32_MAX
- #define INT32_MIN (~ INT32_MAX)
- #define INT32_MAX 2147483647
- #define UINT32_MAX 4294967295U
- #if defined GL_INT64_T && ! defined INT64_MAX
- # define INT64_MIN (- INTMAX_C (1) << 63)
- # define INT64_MAX INTMAX_C (9223372036854775807)
- #endif
- #if defined GL_UINT64_T && ! defined UINT64_MAX
- # define UINT64_MAX UINTMAX_C (18446744073709551615)
- #endif
- #undef INT_LEAST8_MIN
- #undef INT_LEAST8_MAX
- #undef UINT_LEAST8_MAX
- #define INT_LEAST8_MIN INT8_MIN
- #define INT_LEAST8_MAX INT8_MAX
- #define UINT_LEAST8_MAX UINT8_MAX
- #undef INT_LEAST16_MIN
- #undef INT_LEAST16_MAX
- #undef UINT_LEAST16_MAX
- #define INT_LEAST16_MIN INT16_MIN
- #define INT_LEAST16_MAX INT16_MAX
- #define UINT_LEAST16_MAX UINT16_MAX
- #undef INT_LEAST32_MIN
- #undef INT_LEAST32_MAX
- #undef UINT_LEAST32_MAX
- #define INT_LEAST32_MIN INT32_MIN
- #define INT_LEAST32_MAX INT32_MAX
- #define UINT_LEAST32_MAX UINT32_MAX
- #undef INT_LEAST64_MIN
- #undef INT_LEAST64_MAX
- #ifdef GL_INT64_T
- # define INT_LEAST64_MIN INT64_MIN
- # define INT_LEAST64_MAX INT64_MAX
- #endif
- #undef UINT_LEAST64_MAX
- #ifdef GL_UINT64_T
- # define UINT_LEAST64_MAX UINT64_MAX
- #endif
- #undef INT_FAST8_MIN
- #undef INT_FAST8_MAX
- #undef UINT_FAST8_MAX
- #define INT_FAST8_MIN SCHAR_MIN
- #define INT_FAST8_MAX SCHAR_MAX
- #define UINT_FAST8_MAX UCHAR_MAX
- #undef INT_FAST16_MIN
- #undef INT_FAST16_MAX
- #undef UINT_FAST16_MAX
- #define INT_FAST16_MIN INT_FAST32_MIN
- #define INT_FAST16_MAX INT_FAST32_MAX
- #define UINT_FAST16_MAX UINT_FAST32_MAX
- #undef INT_FAST32_MIN
- #undef INT_FAST32_MAX
- #undef UINT_FAST32_MAX
- #ifdef __sun
- # define INT_FAST32_MIN INT_MIN
- # define INT_FAST32_MAX INT_MAX
- # define UINT_FAST32_MAX UINT_MAX
- #else
- # define INT_FAST32_MIN LONG_MIN
- # define INT_FAST32_MAX LONG_MAX
- # define UINT_FAST32_MAX ULONG_MAX
- #endif
- #undef INT_FAST64_MIN
- #undef INT_FAST64_MAX
- #ifdef GL_INT64_T
- # define INT_FAST64_MIN INT64_MIN
- # define INT_FAST64_MAX INT64_MAX
- #endif
- #undef UINT_FAST64_MAX
- #ifdef GL_UINT64_T
- # define UINT_FAST64_MAX UINT64_MAX
- #endif
- #undef INTPTR_MIN
- #undef INTPTR_MAX
- #undef UINTPTR_MAX
- #define INTPTR_MIN LONG_MIN
- #define INTPTR_MAX LONG_MAX
- #define UINTPTR_MAX ULONG_MAX
- #ifndef INTMAX_MAX
- # undef INTMAX_MIN
- # ifdef INT64_MAX
- # define INTMAX_MIN INT64_MIN
- # define INTMAX_MAX INT64_MAX
- # else
- # define INTMAX_MIN INT32_MIN
- # define INTMAX_MAX INT32_MAX
- # endif
- #endif
- #ifndef UINTMAX_MAX
- # ifdef UINT64_MAX
- # define UINTMAX_MAX UINT64_MAX
- # else
- # define UINTMAX_MAX UINT32_MAX
- # endif
- #endif
- #undef PTRDIFF_MIN
- #undef PTRDIFF_MAX
- #if @APPLE_UNIVERSAL_BUILD@
- # ifdef _LP64
- # define PTRDIFF_MIN _STDINT_MIN (1, 64, 0l)
- # define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l)
- # else
- # define PTRDIFF_MIN _STDINT_MIN (1, 32, 0)
- # define PTRDIFF_MAX _STDINT_MAX (1, 32, 0)
- # endif
- #else
- # define PTRDIFF_MIN \
- _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@)
- # define PTRDIFF_MAX \
- _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@)
- #endif
- #undef SIG_ATOMIC_MIN
- #undef SIG_ATOMIC_MAX
- #define SIG_ATOMIC_MIN \
- _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
- 0@SIG_ATOMIC_T_SUFFIX@)
- #define SIG_ATOMIC_MAX \
- _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
- 0@SIG_ATOMIC_T_SUFFIX@)
- #undef SIZE_MAX
- #if @APPLE_UNIVERSAL_BUILD@
- # ifdef _LP64
- # define SIZE_MAX _STDINT_MAX (0, 64, 0ul)
- # else
- # define SIZE_MAX _STDINT_MAX (0, 32, 0ul)
- # endif
- #else
- # define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@)
- #endif
- #if @HAVE_WCHAR_H@ && ! (defined WCHAR_MIN && defined WCHAR_MAX)
-
- # include <stddef.h>
- # include <stdio.h>
- # include <time.h>
- # define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H
- # include <wchar.h>
- # undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H
- #endif
- #undef WCHAR_MIN
- #undef WCHAR_MAX
- #define WCHAR_MIN \
- _STDINT_MIN (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@)
- #define WCHAR_MAX \
- _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@)
- #undef WINT_MIN
- #undef WINT_MAX
- #define WINT_MIN \
- _STDINT_MIN (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
- #define WINT_MAX \
- _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
- #undef INT8_C
- #undef UINT8_C
- #define INT8_C(x) x
- #define UINT8_C(x) x
- #undef INT16_C
- #undef UINT16_C
- #define INT16_C(x) x
- #define UINT16_C(x) x
- #undef INT32_C
- #undef UINT32_C
- #define INT32_C(x) x
- #define UINT32_C(x) x ## U
- #undef INT64_C
- #undef UINT64_C
- #if LONG_MAX >> 31 >> 31 == 1
- # define INT64_C(x) x##L
- #elif defined _MSC_VER
- # define INT64_C(x) x##i64
- #elif @HAVE_LONG_LONG_INT@
- # define INT64_C(x) x##LL
- #endif
- #if ULONG_MAX >> 31 >> 31 >> 1 == 1
- # define UINT64_C(x) x##UL
- #elif defined _MSC_VER
- # define UINT64_C(x) x##ui64
- #elif @HAVE_UNSIGNED_LONG_LONG_INT@
- # define UINT64_C(x) x##ULL
- #endif
- #ifndef INTMAX_C
- # if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
- # define INTMAX_C(x) x##LL
- # elif defined GL_INT64_T
- # define INTMAX_C(x) INT64_C(x)
- # else
- # define INTMAX_C(x) x##L
- # endif
- #endif
- #ifndef UINTMAX_C
- # if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
- # define UINTMAX_C(x) x##ULL
- # elif defined GL_UINT64_T
- # define UINTMAX_C(x) UINT64_C(x)
- # else
- # define UINTMAX_C(x) x##UL
- # endif
- #endif
- #endif /* _@GUARD_PREFIX@_STDINT_H */
- #endif /* !(defined __ANDROID__ && ...) */
- #endif /* !defined _@GUARD_PREFIX@_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */
|