games-action/garden: fix compile (bug #572648)

Package-Manager: portage-2.2.26
This commit is contained in:
Michael Sterrett
2016-01-22 20:24:35 -05:00
parent 8e29ef257e
commit cfaf2aad0f
2 changed files with 5 additions and 22 deletions
@@ -1,20 +0,0 @@
--- src/stuff.c.old 2015-09-22 08:57:21.482794770 +0200
+++ src/stuff.c 2015-09-22 08:58:22.567815095 +0200
@@ -52,7 +52,7 @@
float cos_table[ANGLE_1];
float sin_table[ANGLE_1];
-inline int xpart (int angle, int length);
+extern inline int xpart (int angle, int length);
void init_trig (void)
{
@@ -72,7 +72,7 @@
return (cos_table[angle & 1023] * length);
}
-inline int ypart (int angle, int length)
+extern inline int ypart (int angle, int length)
{
return (sin_table[angle & 1023] * length);
}
+5 -2
View File
@@ -20,8 +20,11 @@ RDEPEND="${DEPEND}"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-dash.patch \
"${FILESDIR}"/${P}-resources.patch \
"${FILESDIR}"/${P}-gcc52.patch
"${FILESDIR}"/${P}-resources.patch
# build with gcc52
sed -i \
-e 's/inline/extern inline/' \
src/stuff.h || die
eautoreconf
}