summaryrefslogtreecommitdiff
path: root/packages/gnash/files/fix-trunc.diff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-09-03 15:04:08 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-09-03 15:04:08 +0000
commit77fe2053f54d554884e65c6e4336f014f7f80fe0 (patch)
tree81a2dc40d2ef4faf0c2a3a7aef62eba41bad1cff /packages/gnash/files/fix-trunc.diff
parentae80bc3aada834677e6e0a1f6713ebe850e7bee1 (diff)
parent9d854b894b8741e62ffa9504a6490abbff1b38b7 (diff)
merge of '23d1f770a092f023ba951e138b787c9bacc3152d'
and 'fe28a990b29bbfd099e38e4fe044896bd0a0d68e'
Diffstat (limited to 'packages/gnash/files/fix-trunc.diff')
-rw-r--r--packages/gnash/files/fix-trunc.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/gnash/files/fix-trunc.diff b/packages/gnash/files/fix-trunc.diff
new file mode 100644
index 0000000000..a01ca311d0
--- /dev/null
+++ b/packages/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
+
+