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
|
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix build with GCC 10
Bug-Debian: https://bugs.debian.org/957232
Forwarded: https://github.com/rwestlund/freesweep/pull/8
--- a/main.c
+++ b/main.c
@@ -10,6 +10,8 @@
#include "sweep.h"
+DrawChars CharSet;
+
int main(int argc, char** argv)
{
GameStats* Game;
--- a/sweep.h.in
+++ b/sweep.h.in
@@ -246,7 +246,7 @@
FILE* DebugLog;
#endif /* DEBUG_LOG */
-DrawChars CharSet;
+extern DrawChars CharSet;
/* These are the functions defined in files.c */
int SourceHomeFile(GameStats* Game);
|