freebsd-ports/games/freeblocks/files/patch-src_menu.h
Christian Weisgerber c6ee17c83b games/freeblocks: fix build on FreeBSD 13/14
This fixes the variable declarations so the port will build with
LLVM11's and GCC10's default of -fno-common.

PR:		253722
Approved by:	amdmi3
2021-02-25 14:58:03 +00:00

15 lines
329 B
C

--- src/menu.h.orig 2015-03-09 12:48:31 UTC
+++ src/menu.h
@@ -37,9 +37,9 @@ typedef struct {
bool has_action;
}MenuItem;
-MenuItem** menu_items;
-int menu_option;
-int menu_size;
+extern MenuItem** menu_items;
+extern int menu_option;
+extern int menu_size;
void menuItemUpdate(int i);
char* menuItemGetText(int i);