You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.6KB

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