diff --git a/src/boards/mmc3.c b/src/boards/mmc3.c index 25e6f51..d2c905d 100644 --- a/src/boards/mmc3.c +++ b/src/boards/mmc3.c @@ -28,20 +28,17 @@ #include "mmc3.h" uint8 MMC3_cmd; -uint8 *WRAM; -uint32 WRAMSIZE; -uint8 *CHRRAM; -uint32 CHRRAMSIZE; +static uint8 *WRAM; +static uint32 WRAMSIZE; +static uint8 *CHRRAM; +static uint32 CHRRAMSIZE; uint8 DRegBuf[8]; uint8 EXPREGS[8]; /* For bootleg games, mostly. */ uint8 A000B, A001B; uint8 mmc3opts = 0; -#undef IRQCount -#undef IRQLatch -#undef IRQa -uint8 IRQCount, IRQLatch, IRQa; -uint8 IRQReload; +static uint8 IRQCount, IRQLatch, IRQa; +static uint8 IRQReload; static SFORMAT MMC3_StateRegs[] = { diff --git a/src/boards/mmc3.h b/src/boards/mmc3.h index 2479f9d..b29a53e 100644 --- a/src/boards/mmc3.h +++ b/src/boards/mmc3.h @@ -8,12 +8,6 @@ extern uint8 A001B; extern uint8 EXPREGS[8]; extern uint8 DRegBuf[8]; -#undef IRQCount -#undef IRQLatch -#undef IRQa -extern uint8 IRQCount, IRQLatch, IRQa; -extern uint8 IRQReload; - extern void (*pwrap)(uint32 A, uint8 V); extern void (*cwrap)(uint32 A, uint8 V); extern void (*mwrap)(uint8 V);