summaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-30 23:24:33 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-30 23:24:33 +0000
commit9c57184394cd5f80412f605d12935afb200aab18 (patch)
tree330ec1d47f08242dd8412ab5857dc0bd74606493 /gcc/ginclude
parent0957f4f7877af10eb52d2faad40b2239dda30f1c (diff)
downloadgcc-9c57184394cd5f80412f605d12935afb200aab18.tar.gz
* Makefile.in (USER_H): Add stdbool.h.
* ginclude/stdbool.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/stdbool.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ginclude/stdbool.h b/gcc/ginclude/stdbool.h
new file mode 100644
index 00000000000..0baf9ce42bd
--- /dev/null
+++ b/gcc/ginclude/stdbool.h
@@ -0,0 +1,20 @@
+/* stdbool.h for GNU. */
+#ifndef __STDBOOL_H__
+#define __STDBOOL_H__ 1
+
+/* 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;
+
+/* The names `true' and `false' must also be made available as macros. */
+#define false false
+#define true true
+
+/* Signal that all the definitions are present. */
+#define __bool_true_false_are_defined 1
+
+#endif /* stdbool.h */