aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gnash/files/fix-trunc.diff
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gnash/files/fix-trunc.diff')
-rw-r--r--recipes/gnash/files/fix-trunc.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/gnash/files/fix-trunc.diff b/recipes/gnash/files/fix-trunc.diff
new file mode 100644
index 0000000000..a01ca311d0
--- /dev/null
+++ b/recipes/gnash/files/fix-trunc.diff
@@ -0,0 +1,13 @@
+--- /tmp/utility.h 2008-09-02 16:35:44.000000000 +0200
++++ gnash/libbase/utility.h 2008-09-02 16:36:10.000000000 +0200
+@@ -327,6 +327,10 @@
+ #endif
+ }
+
++#ifndef HAVE_TRUNC
++inline double trunc(double x) { return (x < 0 ? -(std::floor(-x)) : std::floor(x)); }
++#endif
++
+ #endif // UTILITY_H
+
+