1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 3 // 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 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef _LIBCPP_STDBOOL_H 11 #define _LIBCPP_STDBOOL_H 12 13 /* 14 stdbool.h synopsis 15 16 Macros: 17 18 __bool_true_false_are_defined 19 20 */ 21 22 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) 23 # include <__cxx03/stdbool.h> 24 #else 25 # include <__config> 26 27 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 28 # pragma GCC system_header 29 # endif 30 31 # if __has_include_next(<stdbool.h>) 32 # include_next <stdbool.h> 33 # endif 34 35 # ifdef __cplusplus 36 # undef bool 37 # undef true 38 # undef false 39 # undef __bool_true_false_are_defined 40 # define __bool_true_false_are_defined 1 41 # endif 42 #endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) 43 44 #endif // _LIBCPP_STDBOOL_H 45