summaryrefslogtreecommitdiff
path: root/emulators/gngb/files/patch-src_sgb.h
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
commita8b4a281c42c022147a984fa7aaf77ad149278c7 (patch)
treee405a6a742aba68094c2dcca2febfb6b21978a51 /emulators/gngb/files/patch-src_sgb.h
parentchinese/zh-librime: Update to 1.6.1 (diff)
Fix build with -fno-common
Diffstat (limited to 'emulators/gngb/files/patch-src_sgb.h')
-rw-r--r--emulators/gngb/files/patch-src_sgb.h19
1 files changed, 19 insertions, 0 deletions
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;
+