* class.c (check_bitfield_decl): New function, split out from
[official-gcc.git] / gcc / ginclude / stdbool.h
blob151c1de71a7f1e1f15bf9149b21fab167aeba25d
1 /* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
3 This file is part of GNU CC.
5 GNU CC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 GNU CC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNU CC; see the file COPYING. If not, write to
17 the Free Software Foundation, 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
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. */
28 * ISO C Standard: 7.16 Boolean type and values <stdbool.h>
31 #ifndef _STDBOOL_H
32 #define _STDBOOL_H
34 /* The type `_Bool' must promote to `int' or `unsigned int'. The constants
35 `true' and `false' must have the value 0 and 1 respectively. */
36 typedef enum
38 false = 0,
39 true = 1
40 } _Bool;
42 /* The names `true' and `false' must also be made available as macros. */
43 #define false false
44 #define true true
46 /* The macro `bool', which may be undefined, expands to _Bool. */
47 #define bool _Bool
49 /* Signal that all the definitions are present. */
50 #define __bool_true_false_are_defined 1
52 #endif /* stdbool.h */