• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CSTDBOOL
11#define _LIBCPP_CSTDBOOL
12
13/*
14    cstdbool synopsis
15
16Macros:
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#undef __bool_true_false_are_defined
29#define __bool_true_false_are_defined 1
30
31#if _LIBCPP_STD_VER >= 20
32
33using __standard_header_cstdbool _LIBCPP_DEPRECATED_("removed in C++20.") = void;
34using __use_standard_header_cstdbool                                      = __standard_header_cstdbool;
35
36#elif _LIBCPP_STD_VER >= 17
37
38using __standard_header_cstdbool _LIBCPP_DEPRECATED = void;
39using __use_standard_header_cstdbool                = __standard_header_cstdbool;
40
41#endif
42
43#endif // _LIBCPP_CSTDBOOL
44