summaryrefslogtreecommitdiff
path: root/games-emulation/advancemame/files/advancemame-3.9-fno-common.patch
blob: c378b9aa919e424793629c43de35b9a96ee073be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From f8688cae05799a30cd5337e626a07fa9f004c0a3 Mon Sep 17 00:00:00 2001
From: Andrea Mazzoleni <amadvance@gmail.com>
Date: Fri, 23 Oct 2020 21:29:41 +0200
Subject: [PATCH] Fix build errors due new gcc 10 default for -fno-common

---
 src/drivers/cavepgm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 @@ IGS PCB NO-0136 (Riser)
 #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)
 {