summaryrefslogtreecommitdiff
path: root/uisimulator/win32/stdbool.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-02 12:17:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-02 12:17:54 +0000
commit714d6ffa2ba990e61e6751e3080d4002fd91936f (patch)
treef4516606e5d989d11cacfd40c1b57b0c22ece3f8 /uisimulator/win32/stdbool.h
parent75eeb11c1e7731dafb78319e98f7f9cfe5d2b0c8 (diff)
Mingw compile adjustments. Mostly from Bill Napier.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1521 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32/stdbool.h')
-rw-r--r--uisimulator/win32/stdbool.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/uisimulator/win32/stdbool.h b/uisimulator/win32/stdbool.h
index 769d7ac709..d91ef374b9 100644
--- a/uisimulator/win32/stdbool.h
+++ b/uisimulator/win32/stdbool.h
@@ -17,7 +17,30 @@
*
****************************************************************************/
+#ifndef __STDBOOL_H__
+#define __STDBOOL_H__ 1
+
+#ifndef __MINGW32__
typedef unsigned int bool;
+#define __attribute__(s)
+
#define true 1
#define false 0
-#define __attribute__(s) \ No newline at end of file
+#else
+
+typedef enum
+{
+ false = 0,
+ true = 1
+} bool;
+
+#define false false
+#define true true
+
+/* Signal that all the definitions are present. */
+#define __bool_true_false_are_defined 1
+
+#endif
+
+#endif /* __STDBOOL_H__ */
+