aboutsummaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
authorZack Weinberg <zack@bitmover.com>1999-08-29 15:46:14 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-08-29 15:46:14 +0000
commitf84300c4269026fbbdda49b114bfa311e5d71001 (patch)
tree5929139860a43e914144595fdd522997cbcd07c9 /gcc/ginclude
parentc648f99cd595ef7a096b84a7d5a383f8516658b8 (diff)
downloadgcc-f84300c4269026fbbdda49b114bfa311e5d71001.zip
gcc-f84300c4269026fbbdda49b114bfa311e5d71001.tar.gz
gcc-f84300c4269026fbbdda49b114bfa311e5d71001.tar.bz2
stdbool.h: Make the typedef name _Bool, with bool a #defined alias.
1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com> * stdbool.h: Make the typedef name _Bool, with bool a #defined alias. From-SVN: r28972
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/stdbool.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ginclude/stdbool.h b/gcc/ginclude/stdbool.h
index 0baf9ce..219e423 100644
--- a/gcc/ginclude/stdbool.h
+++ b/gcc/ginclude/stdbool.h
@@ -2,18 +2,21 @@
#ifndef __STDBOOL_H__
#define __STDBOOL_H__ 1
-/* The type `bool' must promote to `int' or `unsigned int'. The constants
+/* The type `_Bool' must promote to `int' or `unsigned int'. The constants
`true' and `false' must have the value 0 and 1 respectively. */
typedef enum
{
false = 0,
true = 1
- } bool;
+ } _Bool;
/* The names `true' and `false' must also be made available as macros. */
#define false false
#define true true
+/* The macro `bool', which may be undefined, expands to _Bool. */
+#define bool _Bool
+
/* Signal that all the definitions are present. */
#define __bool_true_false_are_defined 1