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_sgb.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 emulators/gngb/files/patch-src_sgb.h (limited to 'emulators/gngb/files/patch-src_sgb.h') diff --git a/emulators/gngb/files/patch-src_sgb.h b/emulators/gngb/files/patch-src_sgb.h new file mode 100644 index 000000000000..d1d745a14eda --- /dev/null +++ b/emulators/gngb/files/patch-src_sgb.h @@ -0,0 +1,19 @@ +--- src/sgb.h.orig 2003-04-03 13:27:29 UTC ++++ src/sgb.h +@@ -39,12 +39,12 @@ typedef struct { + Uint8 player; + }SGB; + +-SGB sgb; ++extern SGB sgb; + +-Uint16 sgb_pal[4][4]; /* 4 pallete of 4 colour */ +-Uint8 sgb_pal_map[20][18]; /* Map of Pallete Tiles */ ++extern Uint16 sgb_pal[4][4]; /* 4 pallete of 4 colour */ ++extern Uint8 sgb_pal_map[20][18]; /* Map of Pallete Tiles */ + +-Uint8 sgb_mask; ++extern Uint8 sgb_mask; + + extern SDL_Surface *sgb_buf; + -- cgit v1.2.3