summaryrefslogtreecommitdiff
path: root/games-arcade/apricots/files/apricots-0.2.7-sign-undef.patch
blob: c1904ea9f8be4d5c1a7342b7038cd155703a208c (plain)
1
2
3
4
5
6
7
8
9
10
Undefined reference to sign() when using -O1 or above.
--- a/apricots/all.cpp
+++ b/apricots/all.cpp
@@ -19,5 +19,5 @@
 // Sign function
 
-inline int sign(int n) { return (0 < n) - (n < 0); }
+int sign(int n) { return (0 < n) - (n < 0); }
 
 // Error message for switch statements that shouldn't ever get to default