1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

games/lincity: Fix build on gcc5

GCC5 doesn't like it when static variables are used inside inline
functions.
This commit is contained in:
John Marino 2015-05-01 14:11:05 +00:00
parent 821b92860b
commit ffa19696fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385113

View File

@ -0,0 +1,29 @@
--- mouse.c.orig 2004-07-03 08:03:17 UTC
+++ mouse.c
@@ -1057,7 +1057,7 @@ choose_residence (void)
and set to 1 if the existing transport if the more expensive sort
(e.g. GROUP_RAIL when overwriting GROUP_ROAD).
*/
-inline int
+int
mt_erase(int x, int y)
{
if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
@@ -1094,7 +1094,7 @@ mt_erase(int x, int y)
return 0;
}
-inline int
+int
mt_temp(int x, int y)
{
if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
@@ -1128,7 +1128,7 @@ mt_temp(int x, int y)
return 0;
}
-inline int
+int
mt_perm(int x, int y)
{
/* By now, it has already been mt_erase()'d */