1 1.1 mrg // TR1 cstdint -*- C++ -*- 2 1.1 mrg 3 1.1.1.12 mrg // Copyright (C) 2006-2024 Free Software Foundation, Inc. 4 1.1 mrg // 5 1.1 mrg // This file is part of the GNU ISO C++ Library. This library is free 6 1.1 mrg // software; you can redistribute it and/or modify it under the 7 1.1 mrg // terms of the GNU General Public License as published by the 8 1.1 mrg // Free Software Foundation; either version 3, or (at your option) 9 1.1 mrg // any later version. 10 1.1 mrg 11 1.1 mrg // This library is distributed in the hope that it will be useful, 12 1.1 mrg // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 1.1 mrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 1.1 mrg // GNU General Public License for more details. 15 1.1 mrg 16 1.1 mrg // Under Section 7 of GPL version 3, you are granted additional 17 1.1 mrg // permissions described in the GCC Runtime Library Exception, version 18 1.1 mrg // 3.1, as published by the Free Software Foundation. 19 1.1 mrg 20 1.1 mrg // You should have received a copy of the GNU General Public License and 21 1.1 mrg // a copy of the GCC Runtime Library Exception along with this program; 22 1.1 mrg // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 1.1 mrg // <http://www.gnu.org/licenses/>. 24 1.1 mrg 25 1.1 mrg /** @file tr1/cstdint 26 1.1 mrg * This is a TR1 C++ Library header. 27 1.1 mrg */ 28 1.1 mrg 29 1.1 mrg #ifndef _GLIBCXX_TR1_CSTDINT 30 1.1 mrg #define _GLIBCXX_TR1_CSTDINT 1 31 1.1 mrg 32 1.1 mrg #pragma GCC system_header 33 1.1 mrg 34 1.1.1.12 mrg #include <bits/requires_hosted.h> // TR1 35 1.1.1.12 mrg 36 1.1 mrg #include <bits/c++config.h> 37 1.1 mrg 38 1.1 mrg // For 8.22.1/1 (see C99, Notes 219, 220, 222) 39 1.1 mrg # if _GLIBCXX_HAVE_STDINT_H 40 1.1 mrg # ifndef __STDC_LIMIT_MACROS 41 1.1 mrg # define _UNDEF__STDC_LIMIT_MACROS 42 1.1 mrg # define __STDC_LIMIT_MACROS 43 1.1 mrg # endif 44 1.1 mrg # ifndef __STDC_CONSTANT_MACROS 45 1.1 mrg # define _UNDEF__STDC_CONSTANT_MACROS 46 1.1 mrg # define __STDC_CONSTANT_MACROS 47 1.1 mrg # endif 48 1.1 mrg # include <stdint.h> 49 1.1 mrg # ifdef _UNDEF__STDC_LIMIT_MACROS 50 1.1 mrg # undef __STDC_LIMIT_MACROS 51 1.1 mrg # undef _UNDEF__STDC_LIMIT_MACROS 52 1.1 mrg # endif 53 1.1 mrg # ifdef _UNDEF__STDC_CONSTANT_MACROS 54 1.1 mrg # undef __STDC_CONSTANT_MACROS 55 1.1 mrg # undef _UNDEF__STDC_CONSTANT_MACROS 56 1.1 mrg # endif 57 1.1 mrg # endif 58 1.1 mrg 59 1.1.1.2 mrg #ifdef _GLIBCXX_USE_C99_STDINT_TR1 60 1.1.1.2 mrg 61 1.1.1.2 mrg namespace std _GLIBCXX_VISIBILITY(default) 62 1.1.1.2 mrg { 63 1.1.1.10 mrg _GLIBCXX_BEGIN_NAMESPACE_VERSION 64 1.1.1.2 mrg namespace tr1 65 1.1.1.2 mrg { 66 1.1.1.2 mrg using ::int8_t; 67 1.1.1.2 mrg using ::int16_t; 68 1.1.1.2 mrg using ::int32_t; 69 1.1.1.2 mrg using ::int64_t; 70 1.1.1.2 mrg 71 1.1.1.2 mrg using ::int_fast8_t; 72 1.1.1.2 mrg using ::int_fast16_t; 73 1.1.1.2 mrg using ::int_fast32_t; 74 1.1.1.2 mrg using ::int_fast64_t; 75 1.1.1.2 mrg 76 1.1.1.2 mrg using ::int_least8_t; 77 1.1.1.2 mrg using ::int_least16_t; 78 1.1.1.2 mrg using ::int_least32_t; 79 1.1.1.2 mrg using ::int_least64_t; 80 1.1.1.2 mrg 81 1.1.1.2 mrg using ::intmax_t; 82 1.1.1.2 mrg using ::intptr_t; 83 1.1.1.2 mrg 84 1.1.1.2 mrg using ::uint8_t; 85 1.1.1.2 mrg using ::uint16_t; 86 1.1.1.2 mrg using ::uint32_t; 87 1.1.1.2 mrg using ::uint64_t; 88 1.1.1.2 mrg 89 1.1.1.2 mrg using ::uint_fast8_t; 90 1.1.1.2 mrg using ::uint_fast16_t; 91 1.1.1.2 mrg using ::uint_fast32_t; 92 1.1.1.2 mrg using ::uint_fast64_t; 93 1.1.1.2 mrg 94 1.1.1.2 mrg using ::uint_least8_t; 95 1.1.1.2 mrg using ::uint_least16_t; 96 1.1.1.2 mrg using ::uint_least32_t; 97 1.1.1.2 mrg using ::uint_least64_t; 98 1.1.1.2 mrg 99 1.1.1.2 mrg using ::uintmax_t; 100 1.1.1.2 mrg using ::uintptr_t; 101 1.1.1.2 mrg } 102 1.1.1.10 mrg _GLIBCXX_END_NAMESPACE_VERSION 103 1.1.1.2 mrg } 104 1.1.1.2 mrg 105 1.1.1.2 mrg #endif // _GLIBCXX_USE_C99_STDINT_TR1 106 1.1 mrg 107 1.1 mrg #endif // _GLIBCXX_TR1_CSTDINT 108 1.1 mrg 109