1/* This file is automatically generated. DO NOT EDIT! */ 2/* Generated from: NetBSD: mknative-gdb,v 1.12 2020/09/17 16:54:31 christos Exp */ 3/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 4 5/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 6/* Copyright (C) 2001-2002, 2004-2020 Free Software Foundation, Inc. 7 Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. 8 This file is part of gnulib. 9 10 This program is free software; you can redistribute it and/or modify 11 it under the terms of the GNU General Public License as published by 12 the Free Software Foundation; either version 3, or (at your option) 13 any later version. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, see <https://www.gnu.org/licenses/>. */ 22 23/* 24 * ISO C 99 <stdint.h> for platforms that lack it. 25 * <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html> 26 */ 27 28#ifndef _GL_STDINT_H 29 30#if __GNUC__ >= 3 31#pragma GCC system_header 32#endif 33 34 35/* When including a system file that in turn includes <inttypes.h>, 36 use the system <inttypes.h>, not our substitute. This avoids 37 problems with (for example) VMS, whose <sys/bitypes.h> includes 38 <inttypes.h>. */ 39#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H 40 41/* On Android (Bionic libc), <sys/types.h> includes this file before 42 having defined 'time_t'. Therefore in this case avoid including 43 other system header files; just include the system's <stdint.h>. 44 Ideally we should test __BIONIC__ here, but it is only defined after 45 <sys/cdefs.h> has been included; hence test __ANDROID__ instead. */ 46#if defined __ANDROID__ && defined _GL_INCLUDING_SYS_TYPES_H 47# include_next <stdint.h> 48#else 49 50/* Get those types that are already defined in other system include 51 files, so that we can "#define int8_t signed char" below without 52 worrying about a later system include file containing a "typedef 53 signed char int8_t;" that will get messed up by our macro. Our 54 macros should all be consistent with the system versions, except 55 for the "fast" types and macros, which we recommend against using 56 in public interfaces due to compiler differences. */ 57 58#if 1 59# if defined __sgi && ! defined __c99 60 /* Bypass IRIX's <stdint.h> if in C89 mode, since it merely annoys users 61 with "This header file is to be used only for c99 mode compilations" 62 diagnostics. */ 63# define __STDINT_H__ 64# endif 65 66 /* Some pre-C++11 <stdint.h> implementations need this. */ 67# ifdef __cplusplus 68# ifndef __STDC_CONSTANT_MACROS 69# define __STDC_CONSTANT_MACROS 1 70# endif 71# ifndef __STDC_LIMIT_MACROS 72# define __STDC_LIMIT_MACROS 1 73# endif 74# endif 75 76 /* Other systems may have an incomplete or buggy <stdint.h>. 77 Include it before <inttypes.h>, since any "#include <stdint.h>" 78 in <inttypes.h> would reinclude us, skipping our contents because 79 _GL_STDINT_H is defined. 80 The include_next requires a split double-inclusion guard. */ 81# include_next <stdint.h> 82#endif 83 84#if ! defined _GL_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H 85#define _GL_STDINT_H 86 87/* Get SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, INT_MIN, INT_MAX, 88 LONG_MIN, LONG_MAX, ULONG_MAX, _GL_INTEGER_WIDTH. */ 89#include <limits.h> 90 91/* Override WINT_MIN and WINT_MAX if gnulib's <wchar.h> or <wctype.h> overrides 92 wint_t. */ 93#if 0 94# undef WINT_MIN 95# undef WINT_MAX 96# define WINT_MIN 0x0U 97# define WINT_MAX 0xffffffffU 98#endif 99 100#if ! 0 101 102/* <sys/types.h> defines some of the stdint.h types as well, on glibc, 103 IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>). 104 AIX 5.2 <sys/types.h> isn't needed and causes troubles. 105 Mac OS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but 106 relies on the system <stdint.h> definitions, so include 107 <sys/types.h> after <stdint.h>. */ 108# if 1 && ! defined _AIX 109# include <sys/types.h> 110# endif 111 112# if 1 113 /* In OpenBSD 3.8, <inttypes.h> includes <machine/types.h>, which defines 114 int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. 115 <inttypes.h> also defines intptr_t and uintptr_t. */ 116# include <inttypes.h> 117# elif 1 118 /* Solaris 7 <sys/inttypes.h> has the types except the *_fast*_t types, and 119 the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ 120# include <sys/inttypes.h> 121# endif 122 123# if 0 && ! defined __BIT_TYPES_DEFINED__ 124 /* Linux libc4 >= 4.6.7 and libc5 have a <sys/bitypes.h> that defines 125 int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is 126 included by <sys/types.h>. */ 127# include <sys/bitypes.h> 128# endif 129 130# undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H 131 132/* Minimum and maximum values for an integer type under the usual assumption. 133 Return an unspecified value if BITS == 0, adding a check to pacify 134 picky compilers. */ 135 136/* These are separate macros, because if you try to merge these macros into 137 a single one, HP-UX cc rejects the resulting expression in constant 138 expressions. */ 139# define _STDINT_UNSIGNED_MIN(bits, zero) \ 140 (zero) 141# define _STDINT_SIGNED_MIN(bits, zero) \ 142 (~ _STDINT_MAX (1, bits, zero)) 143 144# define _STDINT_MAX(signed, bits, zero) \ 145 (((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) 146 147#if !GNULIB_defined_stdint_types 148 149/* 7.18.1.1. Exact-width integer types */ 150 151/* Here we assume a standard architecture where the hardware integer 152 types have 8, 16, 32, optionally 64 bits. */ 153 154# undef int8_t 155# undef uint8_t 156typedef signed char gl_int8_t; 157typedef unsigned char gl_uint8_t; 158# define int8_t gl_int8_t 159# define uint8_t gl_uint8_t 160 161# undef int16_t 162# undef uint16_t 163typedef short int gl_int16_t; 164typedef unsigned short int gl_uint16_t; 165# define int16_t gl_int16_t 166# define uint16_t gl_uint16_t 167 168# undef int32_t 169# undef uint32_t 170typedef int gl_int32_t; 171typedef unsigned int gl_uint32_t; 172# define int32_t gl_int32_t 173# define uint32_t gl_uint32_t 174 175/* If the system defines INT64_MAX, assume int64_t works. That way, 176 if the underlying platform defines int64_t to be a 64-bit long long 177 int, the code below won't mistakenly define it to be a 64-bit long 178 int, which would mess up C++ name mangling. We must use #ifdef 179 rather than #if, to avoid an error with HP-UX 10.20 cc. */ 180 181# ifdef INT64_MAX 182# define GL_INT64_T 183# else 184/* Do not undefine int64_t if gnulib is not being used with 64-bit 185 types, since otherwise it breaks platforms like Tandem/NSK. */ 186# if LONG_MAX >> 31 >> 31 == 1 187# undef int64_t 188typedef long int gl_int64_t; 189# define int64_t gl_int64_t 190# define GL_INT64_T 191# elif defined _MSC_VER 192# undef int64_t 193typedef __int64 gl_int64_t; 194# define int64_t gl_int64_t 195# define GL_INT64_T 196# else 197# undef int64_t 198typedef long long int gl_int64_t; 199# define int64_t gl_int64_t 200# define GL_INT64_T 201# endif 202# endif 203 204# ifdef UINT64_MAX 205# define GL_UINT64_T 206# else 207# if ULONG_MAX >> 31 >> 31 >> 1 == 1 208# undef uint64_t 209typedef unsigned long int gl_uint64_t; 210# define uint64_t gl_uint64_t 211# define GL_UINT64_T 212# elif defined _MSC_VER 213# undef uint64_t 214typedef unsigned __int64 gl_uint64_t; 215# define uint64_t gl_uint64_t 216# define GL_UINT64_T 217# else 218# undef uint64_t 219typedef unsigned long long int gl_uint64_t; 220# define uint64_t gl_uint64_t 221# define GL_UINT64_T 222# endif 223# endif 224 225/* Avoid collision with Solaris 2.5.1 <pthread.h> etc. */ 226# define _UINT8_T 227# define _UINT32_T 228# define _UINT64_T 229 230 231/* 7.18.1.2. Minimum-width integer types */ 232 233/* Here we assume a standard architecture where the hardware integer 234 types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types 235 are the same as the corresponding N_t types. */ 236 237# undef int_least8_t 238# undef uint_least8_t 239# undef int_least16_t 240# undef uint_least16_t 241# undef int_least32_t 242# undef uint_least32_t 243# undef int_least64_t 244# undef uint_least64_t 245# define int_least8_t int8_t 246# define uint_least8_t uint8_t 247# define int_least16_t int16_t 248# define uint_least16_t uint16_t 249# define int_least32_t int32_t 250# define uint_least32_t uint32_t 251# ifdef GL_INT64_T 252# define int_least64_t int64_t 253# endif 254# ifdef GL_UINT64_T 255# define uint_least64_t uint64_t 256# endif 257 258/* 7.18.1.3. Fastest minimum-width integer types */ 259 260/* Note: Other <stdint.h> substitutes may define these types differently. 261 It is not recommended to use these types in public header files. */ 262 263/* Here we assume a standard architecture where the hardware integer 264 types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types 265 are taken from the same list of types. The following code normally 266 uses types consistent with glibc, as that lessens the chance of 267 incompatibility with older GNU hosts. */ 268 269# undef int_fast8_t 270# undef uint_fast8_t 271# undef int_fast16_t 272# undef uint_fast16_t 273# undef int_fast32_t 274# undef uint_fast32_t 275# undef int_fast64_t 276# undef uint_fast64_t 277typedef signed char gl_int_fast8_t; 278typedef unsigned char gl_uint_fast8_t; 279 280# ifdef __sun 281/* Define types compatible with SunOS 5.10, so that code compiled under 282 earlier SunOS versions works with code compiled under SunOS 5.10. */ 283typedef int gl_int_fast32_t; 284typedef unsigned int gl_uint_fast32_t; 285# else 286typedef long int gl_int_fast32_t; 287typedef unsigned long int gl_uint_fast32_t; 288# endif 289typedef gl_int_fast32_t gl_int_fast16_t; 290typedef gl_uint_fast32_t gl_uint_fast16_t; 291 292# define int_fast8_t gl_int_fast8_t 293# define uint_fast8_t gl_uint_fast8_t 294# define int_fast16_t gl_int_fast16_t 295# define uint_fast16_t gl_uint_fast16_t 296# define int_fast32_t gl_int_fast32_t 297# define uint_fast32_t gl_uint_fast32_t 298# ifdef GL_INT64_T 299# define int_fast64_t int64_t 300# endif 301# ifdef GL_UINT64_T 302# define uint_fast64_t uint64_t 303# endif 304 305/* 7.18.1.4. Integer types capable of holding object pointers */ 306 307/* kLIBC's <stdint.h> defines _INTPTR_T_DECLARED and needs its own 308 definitions of intptr_t and uintptr_t (which use int and unsigned) 309 to avoid clashes with declarations of system functions like sbrk. 310 Similarly, mingw 5.22 <crtdefs.h> defines _INTPTR_T_DEFINED and 311 _UINTPTR_T_DEFINED and needs its own definitions of intptr_t and 312 uintptr_t to avoid conflicting declarations of system functions like 313 _findclose in <io.h>. */ 314# if !((defined __KLIBC__ && defined _INTPTR_T_DECLARED) \ 315 || (defined __MINGW32__ && defined _INTPTR_T_DEFINED && defined _UINTPTR_T_DEFINED)) 316# undef intptr_t 317# undef uintptr_t 318# ifdef _WIN64 319typedef long long int gl_intptr_t; 320typedef unsigned long long int gl_uintptr_t; 321# else 322typedef long int gl_intptr_t; 323typedef unsigned long int gl_uintptr_t; 324# endif 325# define intptr_t gl_intptr_t 326# define uintptr_t gl_uintptr_t 327# endif 328 329/* 7.18.1.5. Greatest-width integer types */ 330 331/* Note: These types are compiler dependent. It may be unwise to use them in 332 public header files. */ 333 334/* If the system defines INTMAX_MAX, assume that intmax_t works, and 335 similarly for UINTMAX_MAX and uintmax_t. This avoids problems with 336 assuming one type where another is used by the system. */ 337 338# ifndef INTMAX_MAX 339# undef INTMAX_C 340# undef intmax_t 341# if LONG_MAX >> 30 == 1 342typedef long long int gl_intmax_t; 343# define intmax_t gl_intmax_t 344# elif defined GL_INT64_T 345# define intmax_t int64_t 346# else 347typedef long int gl_intmax_t; 348# define intmax_t gl_intmax_t 349# endif 350# endif 351 352# ifndef UINTMAX_MAX 353# undef UINTMAX_C 354# undef uintmax_t 355# if ULONG_MAX >> 31 == 1 356typedef unsigned long long int gl_uintmax_t; 357# define uintmax_t gl_uintmax_t 358# elif defined GL_UINT64_T 359# define uintmax_t uint64_t 360# else 361typedef unsigned long int gl_uintmax_t; 362# define uintmax_t gl_uintmax_t 363# endif 364# endif 365 366/* Verify that intmax_t and uintmax_t have the same size. Too much code 367 breaks if this is not the case. If this check fails, the reason is likely 368 to be found in the autoconf macros. */ 369typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) 370 ? 1 : -1]; 371 372# define GNULIB_defined_stdint_types 1 373# endif /* !GNULIB_defined_stdint_types */ 374 375/* 7.18.2. Limits of specified-width integer types */ 376 377/* 7.18.2.1. Limits of exact-width integer types */ 378 379/* Here we assume a standard architecture where the hardware integer 380 types have 8, 16, 32, optionally 64 bits. */ 381 382# undef INT8_MIN 383# undef INT8_MAX 384# undef UINT8_MAX 385# define INT8_MIN (~ INT8_MAX) 386# define INT8_MAX 127 387# define UINT8_MAX 255 388 389# undef INT16_MIN 390# undef INT16_MAX 391# undef UINT16_MAX 392# define INT16_MIN (~ INT16_MAX) 393# define INT16_MAX 32767 394# define UINT16_MAX 65535 395 396# undef INT32_MIN 397# undef INT32_MAX 398# undef UINT32_MAX 399# define INT32_MIN (~ INT32_MAX) 400# define INT32_MAX 2147483647 401# define UINT32_MAX 4294967295U 402 403# if defined GL_INT64_T && ! defined INT64_MAX 404/* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0 405 evaluates the latter incorrectly in preprocessor expressions. */ 406# define INT64_MIN (- INTMAX_C (1) << 63) 407# define INT64_MAX INTMAX_C (9223372036854775807) 408# endif 409 410# if defined GL_UINT64_T && ! defined UINT64_MAX 411# define UINT64_MAX UINTMAX_C (18446744073709551615) 412# endif 413 414/* 7.18.2.2. Limits of minimum-width integer types */ 415 416/* Here we assume a standard architecture where the hardware integer 417 types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types 418 are the same as the corresponding N_t types. */ 419 420# undef INT_LEAST8_MIN 421# undef INT_LEAST8_MAX 422# undef UINT_LEAST8_MAX 423# define INT_LEAST8_MIN INT8_MIN 424# define INT_LEAST8_MAX INT8_MAX 425# define UINT_LEAST8_MAX UINT8_MAX 426 427# undef INT_LEAST16_MIN 428# undef INT_LEAST16_MAX 429# undef UINT_LEAST16_MAX 430# define INT_LEAST16_MIN INT16_MIN 431# define INT_LEAST16_MAX INT16_MAX 432# define UINT_LEAST16_MAX UINT16_MAX 433 434# undef INT_LEAST32_MIN 435# undef INT_LEAST32_MAX 436# undef UINT_LEAST32_MAX 437# define INT_LEAST32_MIN INT32_MIN 438# define INT_LEAST32_MAX INT32_MAX 439# define UINT_LEAST32_MAX UINT32_MAX 440 441# undef INT_LEAST64_MIN 442# undef INT_LEAST64_MAX 443# ifdef GL_INT64_T 444# define INT_LEAST64_MIN INT64_MIN 445# define INT_LEAST64_MAX INT64_MAX 446# endif 447 448# undef UINT_LEAST64_MAX 449# ifdef GL_UINT64_T 450# define UINT_LEAST64_MAX UINT64_MAX 451# endif 452 453/* 7.18.2.3. Limits of fastest minimum-width integer types */ 454 455/* Here we assume a standard architecture where the hardware integer 456 types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types 457 are taken from the same list of types. */ 458 459# undef INT_FAST8_MIN 460# undef INT_FAST8_MAX 461# undef UINT_FAST8_MAX 462# define INT_FAST8_MIN SCHAR_MIN 463# define INT_FAST8_MAX SCHAR_MAX 464# define UINT_FAST8_MAX UCHAR_MAX 465 466# undef INT_FAST16_MIN 467# undef INT_FAST16_MAX 468# undef UINT_FAST16_MAX 469# define INT_FAST16_MIN INT_FAST32_MIN 470# define INT_FAST16_MAX INT_FAST32_MAX 471# define UINT_FAST16_MAX UINT_FAST32_MAX 472 473# undef INT_FAST32_MIN 474# undef INT_FAST32_MAX 475# undef UINT_FAST32_MAX 476# ifdef __sun 477# define INT_FAST32_MIN INT_MIN 478# define INT_FAST32_MAX INT_MAX 479# define UINT_FAST32_MAX UINT_MAX 480# else 481# define INT_FAST32_MIN LONG_MIN 482# define INT_FAST32_MAX LONG_MAX 483# define UINT_FAST32_MAX ULONG_MAX 484# endif 485 486# undef INT_FAST64_MIN 487# undef INT_FAST64_MAX 488# ifdef GL_INT64_T 489# define INT_FAST64_MIN INT64_MIN 490# define INT_FAST64_MAX INT64_MAX 491# endif 492 493# undef UINT_FAST64_MAX 494# ifdef GL_UINT64_T 495# define UINT_FAST64_MAX UINT64_MAX 496# endif 497 498/* 7.18.2.4. Limits of integer types capable of holding object pointers */ 499 500# undef INTPTR_MIN 501# undef INTPTR_MAX 502# undef UINTPTR_MAX 503# ifdef _WIN64 504# define INTPTR_MIN LLONG_MIN 505# define INTPTR_MAX LLONG_MAX 506# define UINTPTR_MAX ULLONG_MAX 507# else 508# define INTPTR_MIN LONG_MIN 509# define INTPTR_MAX LONG_MAX 510# define UINTPTR_MAX ULONG_MAX 511# endif 512 513/* 7.18.2.5. Limits of greatest-width integer types */ 514 515# ifndef INTMAX_MAX 516# undef INTMAX_MIN 517# ifdef INT64_MAX 518# define INTMAX_MIN INT64_MIN 519# define INTMAX_MAX INT64_MAX 520# else 521# define INTMAX_MIN INT32_MIN 522# define INTMAX_MAX INT32_MAX 523# endif 524# endif 525 526# ifndef UINTMAX_MAX 527# ifdef UINT64_MAX 528# define UINTMAX_MAX UINT64_MAX 529# else 530# define UINTMAX_MAX UINT32_MAX 531# endif 532# endif 533 534/* 7.18.3. Limits of other integer types */ 535 536/* ptrdiff_t limits */ 537# undef PTRDIFF_MIN 538# undef PTRDIFF_MAX 539# if 0 540# ifdef _LP64 541# define PTRDIFF_MIN _STDINT_SIGNED_MIN (64, 0l) 542# define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l) 543# else 544# define PTRDIFF_MIN _STDINT_SIGNED_MIN (32, 0) 545# define PTRDIFF_MAX _STDINT_MAX (1, 32, 0) 546# endif 547# else 548# define PTRDIFF_MIN \ 549 _STDINT_SIGNED_MIN (32, 0l) 550# define PTRDIFF_MAX \ 551 _STDINT_MAX (1, 32, 0l) 552# endif 553 554/* sig_atomic_t limits */ 555# undef SIG_ATOMIC_MIN 556# undef SIG_ATOMIC_MAX 557# if 1 558# define SIG_ATOMIC_MIN \ 559 _STDINT_SIGNED_MIN (32, 0) 560# else 561# define SIG_ATOMIC_MIN \ 562 _STDINT_UNSIGNED_MIN (32, 0) 563# endif 564# define SIG_ATOMIC_MAX \ 565 _STDINT_MAX (1, 32, \ 566 0) 567 568 569/* size_t limit */ 570# undef SIZE_MAX 571# if 0 572# ifdef _LP64 573# define SIZE_MAX _STDINT_MAX (0, 64, 0ul) 574# else 575# define SIZE_MAX _STDINT_MAX (0, 32, 0ul) 576# endif 577# else 578# define SIZE_MAX _STDINT_MAX (0, 32, 0ul) 579# endif 580 581/* wchar_t limits */ 582/* Get WCHAR_MIN, WCHAR_MAX. 583 This include is not on the top, above, because on OSF/1 4.0 we have a 584 sequence of nested includes 585 <wchar.h> -> <stdio.h> -> <getopt.h> -> <stdlib.h>, and the latter includes 586 <stdint.h> and assumes its types are already defined. */ 587# if 1 && ! (defined WCHAR_MIN && defined WCHAR_MAX) 588 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 589 included before <wchar.h>. */ 590# include <stddef.h> 591# include <stdio.h> 592# include <time.h> 593# define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H 594# include <wchar.h> 595# undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H 596# endif 597# undef WCHAR_MIN 598# undef WCHAR_MAX 599# if 1 600# define WCHAR_MIN \ 601 _STDINT_SIGNED_MIN (32, 0) 602# else 603# define WCHAR_MIN \ 604 _STDINT_UNSIGNED_MIN (32, 0) 605# endif 606# define WCHAR_MAX \ 607 _STDINT_MAX (1, 32, 0) 608 609/* wint_t limits */ 610/* If gnulib's <wchar.h> or <wctype.h> overrides wint_t, is not 611 accurate, therefore use the definitions from above. */ 612# if !0 613# undef WINT_MIN 614# undef WINT_MAX 615# if 1 616# define WINT_MIN \ 617 _STDINT_SIGNED_MIN (32, 0) 618# else 619# define WINT_MIN \ 620 _STDINT_UNSIGNED_MIN (32, 0) 621# endif 622# define WINT_MAX \ 623 _STDINT_MAX (1, 32, 0) 624# endif 625 626/* 7.18.4. Macros for integer constants */ 627 628/* 7.18.4.1. Macros for minimum-width integer constants */ 629/* According to ISO C 99 Technical Corrigendum 1 */ 630 631/* Here we assume a standard architecture where the hardware integer 632 types have 8, 16, 32, optionally 64 bits, and int is 32 bits. */ 633 634# undef INT8_C 635# undef UINT8_C 636# define INT8_C(x) x 637# define UINT8_C(x) x 638 639# undef INT16_C 640# undef UINT16_C 641# define INT16_C(x) x 642# define UINT16_C(x) x 643 644# undef INT32_C 645# undef UINT32_C 646# define INT32_C(x) x 647# define UINT32_C(x) x ## U 648 649# undef INT64_C 650# undef UINT64_C 651# if LONG_MAX >> 31 >> 31 == 1 652# define INT64_C(x) x##L 653# elif defined _MSC_VER 654# define INT64_C(x) x##i64 655# else 656# define INT64_C(x) x##LL 657# endif 658# if ULONG_MAX >> 31 >> 31 >> 1 == 1 659# define UINT64_C(x) x##UL 660# elif defined _MSC_VER 661# define UINT64_C(x) x##ui64 662# else 663# define UINT64_C(x) x##ULL 664# endif 665 666/* 7.18.4.2. Macros for greatest-width integer constants */ 667 668# ifndef INTMAX_C 669# if LONG_MAX >> 30 == 1 670# define INTMAX_C(x) x##LL 671# elif defined GL_INT64_T 672# define INTMAX_C(x) INT64_C(x) 673# else 674# define INTMAX_C(x) x##L 675# endif 676# endif 677 678# ifndef UINTMAX_C 679# if ULONG_MAX >> 31 == 1 680# define UINTMAX_C(x) x##ULL 681# elif defined GL_UINT64_T 682# define UINTMAX_C(x) UINT64_C(x) 683# else 684# define UINTMAX_C(x) x##UL 685# endif 686# endif 687 688#endif /* !0 */ 689 690/* Macros specified by ISO/IEC TS 18661-1:2014. */ 691 692#if (!defined UINTMAX_WIDTH \ 693 && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__)) 694# ifdef INT8_MAX 695# define INT8_WIDTH _GL_INTEGER_WIDTH (INT8_MIN, INT8_MAX) 696# endif 697# ifdef UINT8_MAX 698# define UINT8_WIDTH _GL_INTEGER_WIDTH (0, UINT8_MAX) 699# endif 700# ifdef INT16_MAX 701# define INT16_WIDTH _GL_INTEGER_WIDTH (INT16_MIN, INT16_MAX) 702# endif 703# ifdef UINT16_MAX 704# define UINT16_WIDTH _GL_INTEGER_WIDTH (0, UINT16_MAX) 705# endif 706# ifdef INT32_MAX 707# define INT32_WIDTH _GL_INTEGER_WIDTH (INT32_MIN, INT32_MAX) 708# endif 709# ifdef UINT32_MAX 710# define UINT32_WIDTH _GL_INTEGER_WIDTH (0, UINT32_MAX) 711# endif 712# ifdef INT64_MAX 713# define INT64_WIDTH _GL_INTEGER_WIDTH (INT64_MIN, INT64_MAX) 714# endif 715# ifdef UINT64_MAX 716# define UINT64_WIDTH _GL_INTEGER_WIDTH (0, UINT64_MAX) 717# endif 718# define INT_LEAST8_WIDTH _GL_INTEGER_WIDTH (INT_LEAST8_MIN, INT_LEAST8_MAX) 719# define UINT_LEAST8_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST8_MAX) 720# define INT_LEAST16_WIDTH _GL_INTEGER_WIDTH (INT_LEAST16_MIN, INT_LEAST16_MAX) 721# define UINT_LEAST16_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST16_MAX) 722# define INT_LEAST32_WIDTH _GL_INTEGER_WIDTH (INT_LEAST32_MIN, INT_LEAST32_MAX) 723# define UINT_LEAST32_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST32_MAX) 724# define INT_LEAST64_WIDTH _GL_INTEGER_WIDTH (INT_LEAST64_MIN, INT_LEAST64_MAX) 725# define UINT_LEAST64_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST64_MAX) 726# define INT_FAST8_WIDTH _GL_INTEGER_WIDTH (INT_FAST8_MIN, INT_FAST8_MAX) 727# define UINT_FAST8_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST8_MAX) 728# define INT_FAST16_WIDTH _GL_INTEGER_WIDTH (INT_FAST16_MIN, INT_FAST16_MAX) 729# define UINT_FAST16_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST16_MAX) 730# define INT_FAST32_WIDTH _GL_INTEGER_WIDTH (INT_FAST32_MIN, INT_FAST32_MAX) 731# define UINT_FAST32_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST32_MAX) 732# define INT_FAST64_WIDTH _GL_INTEGER_WIDTH (INT_FAST64_MIN, INT_FAST64_MAX) 733# define UINT_FAST64_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST64_MAX) 734# define INTPTR_WIDTH _GL_INTEGER_WIDTH (INTPTR_MIN, INTPTR_MAX) 735# define UINTPTR_WIDTH _GL_INTEGER_WIDTH (0, UINTPTR_MAX) 736# define INTMAX_WIDTH _GL_INTEGER_WIDTH (INTMAX_MIN, INTMAX_MAX) 737# define UINTMAX_WIDTH _GL_INTEGER_WIDTH (0, UINTMAX_MAX) 738# define PTRDIFF_WIDTH _GL_INTEGER_WIDTH (PTRDIFF_MIN, PTRDIFF_MAX) 739# define SIZE_WIDTH _GL_INTEGER_WIDTH (0, SIZE_MAX) 740# define WCHAR_WIDTH _GL_INTEGER_WIDTH (WCHAR_MIN, WCHAR_MAX) 741# ifdef WINT_MAX 742# define WINT_WIDTH _GL_INTEGER_WIDTH (WINT_MIN, WINT_MAX) 743# endif 744# ifdef SIG_ATOMIC_MAX 745# define SIG_ATOMIC_WIDTH _GL_INTEGER_WIDTH (SIG_ATOMIC_MIN, SIG_ATOMIC_MAX) 746# endif 747#endif /* !WINT_WIDTH && (_GNU_SOURCE || __STDC_WANT_IEC_60559_BFP_EXT__) */ 748 749#endif /* _GL_STDINT_H */ 750#endif /* !(defined __ANDROID__ && ...) */ 751#endif /* !defined _GL_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ 752