From b9c74ceb1352c8f433cf6bf2c446ae07457c5267 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 11 Aug 2017 17:43:00 +0200 Subject: Start making this suitable for MSVC and C89 --- source/apu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/apu.h') 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 + 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) -- cgit v1.2.3