2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_STDINT_H
11 // AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T
12 // is defined until an inclusion of it without _STD_TYPES_T occurs, in which
13 // case the header guard macro is defined.
14 #if !defined(_AIX) || !defined(_STD_TYPES_T)
15 # define _LIBCPP_STDINT_H
16 #endif // _STD_TYPES_T
106 #include <__cxx03/__config>
108 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
109 # pragma GCC system_header
112 /* C99 stdlib (e.g. glibc < 2.18) does not provide macros needed
113 for C++11 unless __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
116 #if defined(__cplusplus) && !defined(__STDC_LIMIT_MACROS)
117 # define __STDC_LIMIT_MACROS
119 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
120 # define __STDC_CONSTANT_MACROS
123 #if __has_include_next(<stdint.h>)
124 # include_next <stdint.h>
127 #endif // _LIBCPP_STDINT_H