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.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 emulators/gngb/files/patch-src_sgb.c (limited to 'emulators/gngb/files/patch-src_sgb.c') diff --git a/emulators/gngb/files/patch-src_sgb.c b/emulators/gngb/files/patch-src_sgb.c new file mode 100644 index 000000000000..18d197e26ebe --- /dev/null +++ b/emulators/gngb/files/patch-src_sgb.c @@ -0,0 +1,14 @@ +--- src/sgb.c.orig 2003-08-09 09:23:37 UTC ++++ src/sgb.c +@@ -28,6 +28,11 @@ + #define SGB_CMD_END() {sgb.cmd=0xff;sgb.nb_pack=-1;} + #define SGB_COLOR(c) ((((c)&0x7C00)>>10)|(((c)&0x3E0)<<1)|(((c)&0x1F)<<11)) + ++SGB sgb; ++Uint8 sgb_mask; ++ ++Uint16 sgb_pal[4][4]; /* 4 pallete of 4 colour */ ++Uint8 sgb_pal_map[20][18]; /* Map of Pallete Tiles */ + Uint8 sgb_tiles[256*32]; + Uint8 sgb_map[32*32]; + Uint8 sgb_att[32*32]; -- cgit v1.2.3