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_CSTDBOOL
11 #define _LIBCPP_CSTDBOOL
18 __bool_true_false_are_defined
22 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
23 # include <__cxx03/cstdbool>
27 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
28 # pragma GCC system_header
31 # undef __bool_true_false_are_defined
32 # define __bool_true_false_are_defined 1
34 # if _LIBCPP_STD_VER >= 20
36 using __standard_header_cstdbool _LIBCPP_DEPRECATED_("removed in C++20.") = void;
37 using __use_standard_header_cstdbool = __standard_header_cstdbool;
39 # elif _LIBCPP_STD_VER >= 17
41 using __standard_header_cstdbool _LIBCPP_DEPRECATED = void;
42 using __use_standard_header_cstdbool = __standard_header_cstdbool;
45 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
47 #endif // _LIBCPP_CSTDBOOL