aboutsummaryrefslogtreecommitdiff
path: root/source/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/port.h')
-rw-r--r--source/port.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/port.h b/source/port.h
index 9583a74..2ddab20 100644
--- a/source/port.h
+++ b/source/port.h
@@ -288,5 +288,15 @@ void MixSound(void);
#define STATIC static
#endif
+#if defined(_MSC_VER) && !defined(SN_TARGET_PS3)
+/* Hack applied for MSVC when compiling in C89 mode
+ * as it isn't C99-compliant. */
+#define bool unsigned char
+#define true 1
+#define false 0
+#else
+#include <stdbool.h>
+#endif
+
#endif