File overgod-gcc5.patch of Package overgod
Description: Fixed GCC5 build issue.
ADD "extern" to xpart and ypart functions
.
overgod (1.0-4.1) UNRELEASED; urgency=medium
.
* Fixed Gcc5 build issue. (closes 778051)
Author: Nicholas Luedtke <nicholas.luedtke@hp.com>
Index: overgod-1.0/stuff.c
===================================================================
--- overgod-1.0/stuff.c 2005-09-11 09:35:48.000000000 +0200
+++ overgod-1.0-new/stuff.c 2015-12-27 18:47:48.076794412 +0100
@@ -51,8 +51,6 @@
float cos_table [ANGLE_FULL];
float sin_table [ANGLE_FULL];
-inline int xpart(int angle, int length);
-
void init_trig(void)
{
int i;
@@ -66,13 +64,13 @@
}
-inline int xpart(int angle, int length)
+extern inline int xpart(int angle, int length)
{
// return (lcos(angle) * length);// / ANGLE_FULL;
return (cos_table [angle & 1023] * length);// / ANGLE_FULL;
}
-inline int ypart(int angle, int length)
+extern inline int ypart(int angle, int length)
{
return (sin_table [angle & 1023] * length);// / ANGLE_FULL;
}