diff options
author | aliaspider | 2014-10-29 10:11:16 +0100 |
---|---|---|
committer | aliaspider | 2014-10-29 10:11:16 +0100 |
commit | 4fb67d24cdde1e085d09a699ed2f5d68c306f534 (patch) | |
tree | 92fbe54e835ca1c799f15b250241929681a26a99 /source/port.h | |
parent | 9c8d36087b5b35c35c7ff9276a15d400ce45f519 (diff) | |
download | snes9x2005-4fb67d24cdde1e085d09a699ed2f5d68c306f534.tar.gz snes9x2005-4fb67d24cdde1e085d09a699ed2f5d68c306f534.tar.bz2 snes9x2005-4fb67d24cdde1e085d09a699ed2f5d68c306f534.zip |
get rid of all remaining C++ code.
Diffstat (limited to 'source/port.h')
-rw-r--r-- | source/port.h | 10 |
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 |