Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
math/gkmap: fix build with -fno-common
PR: 259615 Approved by: javad.kouhi@gmail.com (maintainer timeout, 5 weeks)
- Loading branch information
1 parent
65236c8
commit 975c082
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- src/init.c.orig 2021-11-02 09:37:31 UTC | ||
+++ src/init.c | ||
@@ -1,5 +1,11 @@ | ||
#include "kmap_struct.h" | ||
|
||
+/* globals */ | ||
+struct cell cell_array[4][4]; | ||
+struct output out_array[20]; | ||
+char semi_final_out[70]; | ||
+char final_out[100]; | ||
+ | ||
void init_kmap(void) | ||
{ | ||
int i,j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- src/kmap_struct.h.orig 2021-11-02 09:33:21 UTC | ||
+++ src/kmap_struct.h | ||
@@ -36,7 +36,7 @@ struct cell | ||
struct cell *left,*right,*down,*up; | ||
char col_string[3], row_string[3]; | ||
}; | ||
-struct cell cell_array[4][4]; | ||
+extern struct cell cell_array[4][4]; | ||
|
||
struct output | ||
{ | ||
@@ -44,10 +44,10 @@ struct output | ||
char cell_num_string[10]; | ||
int status; | ||
}; | ||
-struct output out_array[20]; | ||
- | ||
-char semi_final_out[70]; | ||
-char final_out[100]; | ||
+extern struct output out_array[20]; | ||
+ | ||
+extern char semi_final_out[70]; | ||
+extern char final_out[100]; | ||
|
||
|
||
|