aboutsummaryrefslogtreecommitdiff
path: root/games/advancemame/compilefix.diff
diff options
context:
space:
mode:
Diffstat (limited to 'games/advancemame/compilefix.diff')
-rw-r--r--games/advancemame/compilefix.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/games/advancemame/compilefix.diff b/games/advancemame/compilefix.diff
new file mode 100644
index 0000000000000..ddf815a4b70f1
--- /dev/null
+++ b/games/advancemame/compilefix.diff
@@ -0,0 +1,24 @@
+diff --git a/src/drivers/cavepgm.c b/src/drivers/cavepgm.c
+index 38d3dae8..df6e97ab 100644
+--- a/src/drivers/cavepgm.c
++++ b/src/drivers/cavepgm.c
+@@ -287,7 +287,7 @@ Notes:
+ #include "timer.h"
+
+
+-UINT16 *pgm_mainram, *pgm_bg_videoram, *pgm_tx_videoram, *pgm_videoregs, *pgm_rowscrollram;
++extern UINT16 *pgm_mainram, *pgm_bg_videoram, *pgm_tx_videoram, *pgm_videoregs, *pgm_rowscrollram;
+ static UINT8 *z80_mainram;
+ static UINT32 *arm7_shareram;
+ static UINT32 arm7_latch;
+@@ -852,8 +852,8 @@ static void expand_32x32x5bpp(void)
+ /* This function expands the sprite colour data (in the A Roms) from 3 pixels
+ in each word to a byte per pixel making it easier to use */
+
+-UINT8 *pgm_sprite_a_region;
+-size_t pgm_sprite_a_region_allocate;
++extern UINT8 *pgm_sprite_a_region;
++extern size_t pgm_sprite_a_region_allocate;
+
+ static void expand_colourdata(void)
+ {