summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch')
-rw-r--r--games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch
new file mode 100644
index 000000000000..74b4bf644d49
--- /dev/null
+++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch
@@ -0,0 +1,21 @@
+Bug: https://bugs.gentoo.org/600894
+
+--- a/insaneodyssey/io.cpp
++++ b/insaneodyssey/io.cpp
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <cmath>
+
+ #include <SDL/SDL.h>
+
+@@ -894,7 +895,7 @@
+ else
+ {
+ if ( jumping )
+- yspeed = -jumpheight - abs(xspeed)/4;
++ yspeed = -jumpheight - std::abs(xspeed)/4;
+ }
+
+ short TempX = (x + width/2) / TILESIZE;