xref: /freebsd/contrib/llvm-project/libcxx/include/stdbool.h (revision 577b62c2bacc7dfa228591ca3da361e1bc398301)
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 #ifndef _LIBCPP_STDBOOL_H
10 #define _LIBCPP_STDBOOL_H
11 
12 /*
13     stdbool.h synopsis
14 
15 Macros:
16 
17     __bool_true_false_are_defined
18 
19 */
20 
21 #include <__config>
22 
23 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
24 #  pragma GCC system_header
25 #endif
26 
27 #include_next <stdbool.h>
28 
29 #ifdef __cplusplus
30 #undef bool
31 #undef true
32 #undef false
33 #undef __bool_true_false_are_defined
34 #define __bool_true_false_are_defined 1
35 #endif
36 
37 #endif // _LIBCPP_STDBOOL_H
38