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/gfx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/gfx.h') diff --git a/source/gfx.h b/source/gfx.h index c6b01cc..1b4cc6a 100644 --- a/source/gfx.h +++ b/source/gfx.h @@ -7,6 +7,8 @@ #include "ppu.h" #include "snes9x.h" +#include + void S9xStartScreenRefresh(void); void S9xDrawScanLine(uint8_t Line); void S9xEndScreenRefresh(void); @@ -145,7 +147,7 @@ extern uint8_t mul_brightness [16][32]; #define SUB_SCREEN_DEPTH 0 #define MAIN_SCREEN_DEPTH 32 -static inline uint16_t COLOR_ADD(uint16_t C1, uint16_t C2) +static INLINE uint16_t COLOR_ADD(uint16_t C1, uint16_t C2) { if (C1 == 0) return C2; -- cgit v1.2.3