From a8b4a281c42c022147a984fa7aaf77ad149278c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 22 Sep 2020 18:38:06 +0000 Subject: Fix build with -fno-common --- emulators/gngb/files/patch-src_rom.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 emulators/gngb/files/patch-src_rom.h (limited to 'emulators/gngb/files/patch-src_rom.h') diff --git a/emulators/gngb/files/patch-src_rom.h b/emulators/gngb/files/patch-src_rom.h new file mode 100644 index 000000000000..2efd26f11a7e --- /dev/null +++ b/emulators/gngb/files/patch-src_rom.h @@ -0,0 +1,20 @@ +--- src/rom.h.orig 2003-04-03 13:27:29 UTC ++++ src/rom.h +@@ -37,7 +37,7 @@ + #define SRAM 0x200 + #define HUC1 0x400 + +-char *rom_name; ++extern char *rom_name; + extern Sint16 rom_type; + + // rom_gb_suport +@@ -52,7 +52,7 @@ typedef struct { + Uint8 regl[5]; // register locked + }ROM_TIMER; // MBC3 + +-ROM_TIMER *rom_timer; ++extern ROM_TIMER *rom_timer; + + int open_rom(char *filename); + -- cgit v1.2.3