File: gcc10.patch

package info (click to toggle)
freesweep 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 648 kB
  • sloc: ansic: 5,331; sh: 2,180; makefile: 204
file content (27 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
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);