]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ginclude/stdbool.h
re PR testsuite/39696 (gcc.dg/tree-ssa/ssa-ccp-25.c scan-tree-dump doesn't work on...
[thirdparty/gcc.git] / gcc / ginclude / stdbool.h
CommitLineData
c8b313e7 1/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
fe1dbf6c 2
e531258e 3This file is part of GCC.
fe1dbf6c 4
e531258e 5GCC is free software; you can redistribute it and/or modify
fe1dbf6c
ZW
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 2, or (at your option)
8any later version.
9
e531258e 10GCC is distributed in the hope that it will be useful,
fe1dbf6c
ZW
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
e531258e 16along with GCC; see the file COPYING. If not, write to
6c912b0c
KC
17the Free Software Foundation, 51 Franklin Street, Fifth Floor,
18Boston, MA 02110-1301, USA. */
fe1dbf6c
ZW
19
20/* As a special exception, if you include this header file into source
21 files compiled by GCC, this header file does not by itself cause
22 the resulting executable to be covered by the GNU General Public
23 License. This exception does not however invalidate any other
24 reasons why the executable file might be covered by the GNU General
25 Public License. */
26
27/*
28 * ISO C Standard: 7.16 Boolean type and values <stdbool.h>
29 */
30
31#ifndef _STDBOOL_H
32#define _STDBOOL_H
e2b629d7 33
c8b313e7 34#ifndef __cplusplus
e2b629d7 35
19552aa5
JM
36#define bool _Bool
37#define true 1
38#define false 0
f84300c4 39
c8b313e7
ML
40#else /* __cplusplus */
41
42/* Supporting <stdbool.h> in C++ is a GCC extension. */
43#define _Bool bool
44#define bool bool
45#define false false
46#define true true
47
48#endif /* __cplusplus */
49
e2b629d7
JL
50/* Signal that all the definitions are present. */
51#define __bool_true_false_are_defined 1
52
53#endif /* stdbool.h */