| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T |
| // is defined until an inclusion of it without _STD_TYPES_T occurs, in which |
| // case the header guard macro is defined. |
| #if !defined(_AIX) || !defined(_STD_TYPES_T) |
| #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| # pragma GCC system_header |
| /* C99 stdlib (e.g. glibc < 2.18) does not provide macros needed |
| for C++11 unless __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS |
| #if defined(__cplusplus) && !defined(__STDC_LIMIT_MACROS) |
| # define __STDC_LIMIT_MACROS |
| #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS) |
| # define __STDC_CONSTANT_MACROS |
| #if __has_include_next(<stdint.h>) |
| # include_next <stdint.h> |
| #endif // _LIBCPP_STDINT_H |