Eric Fiselier | 6eb01c9 | 2016-02-20 00:16:41 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- stdbool.h --------------------------------===// |
| 3 | // |
Chandler Carruth | d201210 | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 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 |
Eric Fiselier | 6eb01c9 | 2016-02-20 00:16:41 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | #ifndef _LIBCPP_STDBOOL_H |
| 10 | #define _LIBCPP_STDBOOL_H |
| 11 | |
| 12 | |
| 13 | /* |
| 14 | stdbool.h synopsis |
| 15 | |
| 16 | Macros: |
| 17 | |
| 18 | __bool_true_false_are_defined |
| 19 | |
| 20 | */ |
| 21 | |
| 22 | #include <__config> |
| 23 | |
| 24 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 25 | #pragma GCC system_header |
| 26 | #endif |
| 27 | |
| 28 | #include_next <stdbool.h> |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | #undef bool |
| 32 | #undef true |
| 33 | #undef false |
| 34 | #undef __bool_true_false_are_defined |
| 35 | #define __bool_true_false_are_defined 1 |
| 36 | #endif |
| 37 | |
Louis Dionne | 2b1ceaa | 2021-04-20 12:03:32 -0400 | [diff] [blame] | 38 | #endif // _LIBCPP_STDBOOL_H |