diff options
Diffstat (limited to 'compatibility/stdbool.h')
-rw-r--r-- | compatibility/stdbool.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compatibility/stdbool.h b/compatibility/stdbool.h new file mode 100644 index 0000000..1ea9bb1 --- /dev/null +++ b/compatibility/stdbool.h @@ -0,0 +1,11 @@ +#ifndef __STDBOOL_REPLACEMENT__H__
+#define __STDBOOL_REPLACEMENT__H__
+
+#ifdef _MSC_VER
+typedef enum { __bool_must_promote_to_int = -1, false = 0, true = 1 } __bool;
+#define bool __bool
+#define false 0
+#define true 1
+#endif
+
+#endif /* __STDBOOL_REPLACEMENT__H__ */
|