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_CSTDINT
11 #define _LIBCPP_CSTDINT
143 #include <__cxx03/__config>
145 #include <__cxx03/stdint.h>
147 #ifndef _LIBCPP_STDINT_H
148 # error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
149 This usually means that your header search paths are not configured properly. \
150 The header search paths should contain the C++ Standard Library headers before \
151 any C Standard Library, and you are probably using compiler flags that make that \
155 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
156 # pragma GCC system_header
159 _LIBCPP_BEGIN_NAMESPACE_STD
161 using ::int8_t _LIBCPP_USING_IF_EXISTS;
162 using ::int16_t _LIBCPP_USING_IF_EXISTS;
163 using ::int32_t _LIBCPP_USING_IF_EXISTS;
164 using ::int64_t _LIBCPP_USING_IF_EXISTS;
166 using ::uint8_t _LIBCPP_USING_IF_EXISTS;
167 using ::uint16_t _LIBCPP_USING_IF_EXISTS;
168 using ::uint32_t _LIBCPP_USING_IF_EXISTS;
169 using ::uint64_t _LIBCPP_USING_IF_EXISTS;
171 using ::int_least8_t _LIBCPP_USING_IF_EXISTS;
172 using ::int_least16_t _LIBCPP_USING_IF_EXISTS;
173 using ::int_least32_t _LIBCPP_USING_IF_EXISTS;
174 using ::int_least64_t _LIBCPP_USING_IF_EXISTS;
176 using ::uint_least8_t _LIBCPP_USING_IF_EXISTS;
177 using ::uint_least16_t _LIBCPP_USING_IF_EXISTS;
178 using ::uint_least32_t _LIBCPP_USING_IF_EXISTS;
179 using ::uint_least64_t _LIBCPP_USING_IF_EXISTS;
181 using ::int_fast8_t _LIBCPP_USING_IF_EXISTS;
182 using ::int_fast16_t _LIBCPP_USING_IF_EXISTS;
183 using ::int_fast32_t _LIBCPP_USING_IF_EXISTS;
184 using ::int_fast64_t _LIBCPP_USING_IF_EXISTS;
186 using ::uint_fast8_t _LIBCPP_USING_IF_EXISTS;
187 using ::uint_fast16_t _LIBCPP_USING_IF_EXISTS;
188 using ::uint_fast32_t _LIBCPP_USING_IF_EXISTS;
189 using ::uint_fast64_t _LIBCPP_USING_IF_EXISTS;
191 using ::intptr_t _LIBCPP_USING_IF_EXISTS;
192 using ::uintptr_t _LIBCPP_USING_IF_EXISTS;
194 using ::intmax_t _LIBCPP_USING_IF_EXISTS;
195 using ::uintmax_t _LIBCPP_USING_IF_EXISTS;
197 _LIBCPP_END_NAMESPACE_STD
199 #endif // _LIBCPP_CSTDINT