File: gcc10.patch

package info (click to toggle)
liquidwar 5.6.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 26,328 kB
  • sloc: ansic: 26,238; xml: 4,011; sh: 3,825; asm: 1,344; makefile: 1,343; python: 537; php: 487; perl: 29; sql: 22; javascript: 11
file content (30 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (2)
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
28
29
30
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix FTBFS with GCC 10
Bug-Debian: https://bugs.debian.org/957493

--- a/src/fighter.h
+++ b/src/fighter.h
@@ -59,8 +59,8 @@
 /* variables globales                                               */
 /*==================================================================*/
 
-int FIGHTER_MOVE_X[2][NB_DIRS][5];
-int FIGHTER_MOVE_Y[2][NB_DIRS][5];
+extern int FIGHTER_MOVE_X[2][NB_DIRS][5];
+extern int FIGHTER_MOVE_Y[2][NB_DIRS][5];
 
 /*==================================================================*/
 /* fonctions globales                                               */
--- a/src/random.h
+++ b/src/random.h
@@ -66,8 +66,8 @@
 /* variables globales                                               */
 /*==================================================================*/
 
-void *LW_RANDOM_RAW_MAP;
-int LW_RANDOM_ON;
+extern void *LW_RANDOM_RAW_MAP;
+extern int LW_RANDOM_ON;
 
 /*==================================================================*/
 /* fonctions globales                                               */