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 <__assert> // all public C++ headers provide the assertion handler
148 #ifndef _LIBCPP_STDINT_H
149 # error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
150 This usually means that your header search paths are not configured properly. \
151 The header search paths should contain the C++ Standard Library headers before \
152 any C Standard Library, and you are probably using compiler flags that make that \
156 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
157 # pragma GCC system_header
160 _LIBCPP_BEGIN_NAMESPACE_STD
162 using ::int8_t _LIBCPP_USING_IF_EXISTS;
163 using ::int16_t _LIBCPP_USING_IF_EXISTS;
164 using ::int32_t _LIBCPP_USING_IF_EXISTS;
165 using ::int64_t _LIBCPP_USING_IF_EXISTS;
167 using ::uint8_t _LIBCPP_USING_IF_EXISTS;
168 using ::uint16_t _LIBCPP_USING_IF_EXISTS;
169 using ::uint32_t _LIBCPP_USING_IF_EXISTS;
170 using ::uint64_t _LIBCPP_USING_IF_EXISTS;
172 using ::int_least8_t _LIBCPP_USING_IF_EXISTS;
173 using ::int_least16_t _LIBCPP_USING_IF_EXISTS;
174 using ::int_least32_t _LIBCPP_USING_IF_EXISTS;
175 using ::int_least64_t _LIBCPP_USING_IF_EXISTS;
177 using ::uint_least8_t _LIBCPP_USING_IF_EXISTS;
178 using ::uint_least16_t _LIBCPP_USING_IF_EXISTS;
179 using ::uint_least32_t _LIBCPP_USING_IF_EXISTS;
180 using ::uint_least64_t _LIBCPP_USING_IF_EXISTS;
182 using ::int_fast8_t _LIBCPP_USING_IF_EXISTS;
183 using ::int_fast16_t _LIBCPP_USING_IF_EXISTS;
184 using ::int_fast32_t _LIBCPP_USING_IF_EXISTS;
185 using ::int_fast64_t _LIBCPP_USING_IF_EXISTS;
187 using ::uint_fast8_t _LIBCPP_USING_IF_EXISTS;
188 using ::uint_fast16_t _LIBCPP_USING_IF_EXISTS;
189 using ::uint_fast32_t _LIBCPP_USING_IF_EXISTS;
190 using ::uint_fast64_t _LIBCPP_USING_IF_EXISTS;
192 using ::intptr_t _LIBCPP_USING_IF_EXISTS;
193 using ::uintptr_t _LIBCPP_USING_IF_EXISTS;
195 using ::intmax_t _LIBCPP_USING_IF_EXISTS;
196 using ::uintmax_t _LIBCPP_USING_IF_EXISTS;
198 _LIBCPP_END_NAMESPACE_STD
200 #endif // _LIBCPP_CSTDINT