summaryrefslogtreecommitdiff
path: root/com32
diff options
context:
space:
mode:
authorhpa <hpa>2003-04-16 06:32:31 +0000
committerhpa <hpa>2003-04-16 06:32:31 +0000
commit6f66c87cdab23892322d792c656999636df9d444 (patch)
treeb303c7fad5e499eac292385e63902fab5352150e /com32
parent22d11fcbf8b13f72ab859f58768ed3b3b21440df (diff)
downloadsyslinux-6f66c87cdab23892322d792c656999636df9d444.tar.gz
Add <stdbool.h>
Diffstat (limited to 'com32')
-rw-r--r--com32/include/stdbool.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/com32/include/stdbool.h b/com32/include/stdbool.h
new file mode 100644
index 00000000..36830448
--- /dev/null
+++ b/com32/include/stdbool.h
@@ -0,0 +1,33 @@
+/*
+ * $Id$
+ *
+ * stdbool.h
+ */
+
+#ifndef _STDBOOL_H
+#define _STDBOOL_H
+
+#ifndef __cplusplus
+
+#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
+# if !defined(__GNUC__) ||(__GNUC__ < 3)
+ typedef char _Bool; /* For C compilers without _Bool */
+# endif
+#endif
+
+#define bool _Bool
+#define true 1
+#define false 0
+
+#else
+
+/* C++ */
+#define bool bool
+#define true true
+#define false false
+
+#endif
+
+#define __bool_true_false_are_defined 1
+
+#endif /* _STDBOOL_H */