From: notaz Date: Mon, 18 Jun 2007 20:40:27 +0000 (+0000) Subject: compile fix X-Git-Tag: r1~19 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=commitdiff_plain;h=cd9a6b519c9c465d6781d4a6636d715542e6e0f6 compile fix git-svn-id: file:///home/notaz/opt/svn/fceu@169 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/fce.c b/fce.c index 19d2be4..eafba11 100644 --- a/fce.c +++ b/fce.c @@ -111,6 +111,7 @@ static writefunc *BWriteG; static int RWWrap=0; #ifdef ASM_6502 +#ifndef DEBUG_ASM_6502 static void asmcpu_update(int32 cycles) { // some code from x6502.c @@ -136,6 +137,7 @@ static void asmcpu_update(int32 cycles) } } } +#endif void asmcpu_unpack(void) { @@ -1514,6 +1516,7 @@ void ResetNES081(void) X6502_Reset(); } +#ifndef DEBUG_ASM_6502 static void FCEU_MemoryRand(uint8 *ptr, uint32 size) { int x=0; @@ -1525,6 +1528,7 @@ static void FCEU_MemoryRand(uint8 *ptr, uint32 size) ptr++; } } +#endif void PowerNES081(void) { diff --git a/ppu098.c b/ppu098.c index d0a0a49..023975b 100644 --- a/ppu098.c +++ b/ppu098.c @@ -86,7 +86,7 @@ static void makeppulut(void) } } -#ifdef ASM_6502 +#if defined(ASM_6502) && !defined(DEBUG_ASM_6502) static void asmcpu_update(int32 cycles) { // some code from x6502.c @@ -695,7 +695,9 @@ static void Fixit1(void) void MMC5_hb(int); /* Ugh ugh ugh. */ static void DoLine(void) { +#ifndef GP2X int x; +#endif uint8 *target=XBuf+scanline*320+32; if(MMC5Hack && (ScreenON || SpriteON)) MMC5_hb(scanline);