diff options
author | twinaphex | 2017-08-11 17:43:00 +0200 |
---|---|---|
committer | twinaphex | 2017-08-11 17:43:00 +0200 |
commit | b9c74ceb1352c8f433cf6bf2c446ae07457c5267 (patch) | |
tree | afd398fed3d08c81957373be55a12284cb932ab6 /source/apu.h | |
parent | 1aecedc999445e9a27e04f665fd562b576775d08 (diff) | |
download | snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.gz snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.bz2 snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.zip |
Start making this suitable for MSVC and C89
Diffstat (limited to 'source/apu.h')
-rw-r--r-- | source/apu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/apu.h b/source/apu.h index 3e034c1..8944377 100644 --- a/source/apu.h +++ b/source/apu.h @@ -8,6 +8,8 @@ #include "port.h" #include "spc700.h" +#include <retro_inline.h> + typedef struct { uint8_t* PC; @@ -47,14 +49,14 @@ typedef struct SAPU APU; SIAPU IAPU; -static inline void S9xAPUUnpackStatus(void) +static INLINE void S9xAPUUnpackStatus(void) { IAPU._Zero = ((IAPU.Registers.P & Zero) == 0) | (IAPU.Registers.P & Negative); IAPU._Carry = (IAPU.Registers.P & Carry); IAPU._Overflow = IAPU.Registers.P & Overflow; } -static inline void S9xAPUPackStatus(void) +static INLINE void S9xAPUPackStatus(void) { IAPU.Registers.P &= ~(Zero | Negative | Carry | Overflow); if (IAPU._Carry) |