svn commit: r385113 - head/games/lincity/files
John Marino
marino at FreeBSD.org
Fri May 1 14:11:06 UTC 2015
Author: marino
Date: Fri May 1 14:11:05 2015
New Revision: 385113
URL: https://svnweb.freebsd.org/changeset/ports/385113
Log:
games/lincity: Fix build on gcc5
GCC5 doesn't like it when static variables are used inside inline
functions.
Added:
head/games/lincity/files/patch-mouse.c (contents, props changed)
Added: head/games/lincity/files/patch-mouse.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/lincity/files/patch-mouse.c Fri May 1 14:11:05 2015 (r385113)
@@ -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 */
More information about the svn-ports-head
mailing list