summaryrefslogtreecommitdiffstats
path: root/libcxx/include/stdbool.h
blob: 8d8b2bb27e54ceff8dde5479d8640990c48409b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// -*- C++ -*-
//===--------------------------- stdbool.h --------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef _LIBCPP_STDBOOL_H
#define _LIBCPP_STDBOOL_H

/*
    stdbool.h synopsis

Macros:

    __bool_true_false_are_defined

*/

#ifdef __cplusplus
#include <__config>
#endif

#pragma GCC system_header

#undef __bool_true_false_are_defined
#define __bool_true_false_are_defined 1

#ifndef __cplusplus

#define bool _Bool
#if __STDC_VERSION__ < 199901L && __GNUC__ < 3
typedef int _Bool;
#endif

#define false (bool)0
#define true (bool)1

#endif /* !__cplusplus */

#endif  // _LIBCPP_STDBOOL_H
OpenPOWER on IntegriCloud