aboutsummaryrefslogtreecommitdiff
path: root/package/webkit/webkit-r30267-trunc.patch
diff options
context:
space:
mode:
authorGravatar John Voltz <john.voltz@gmail.com>2008-03-06 18:28:48 +0000
committerGravatar John Voltz <john.voltz@gmail.com>2008-03-06 18:28:48 +0000
commitb1ca8e68ae50fc3c980ae5f89e5da35262da0bba (patch)
tree3f00418cd705b49f3fbeedf44256554c5e6cc8fd /package/webkit/webkit-r30267-trunc.patch
parent70b2460ed994b85fe8904ab8e79dda8a782e5e5b (diff)
downloadbuildroot-b1ca8e68ae50fc3c980ae5f89e5da35262da0bba.tar.gz
buildroot-b1ca8e68ae50fc3c980ae5f89e5da35262da0bba.tar.bz2
added webkit
Diffstat (limited to 'package/webkit/webkit-r30267-trunc.patch')
-rw-r--r--package/webkit/webkit-r30267-trunc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/webkit/webkit-r30267-trunc.patch b/package/webkit/webkit-r30267-trunc.patch
new file mode 100644
index 0000000000..0cc7ca2558
--- /dev/null
+++ b/package/webkit/webkit-r30267-trunc.patch
@@ -0,0 +1,11 @@
+--- a/JavaScriptCore/wtf/MathExtras.h 2008-02-04 21:09:08.000000000 -0500
++++ b/JavaScriptCore/wtf/MathExtras.h 2008-02-11 13:31:28.000000000 -0500
+@@ -75,6 +75,8 @@ inline bool signbit(double x) { return x
+
+ #endif
+
++inline double trunc(double num) { return num > 0 ? floor(num) : ceil(num); }
++
+ #if COMPILER(MSVC)
+
+ inline bool isinf(double num) { return !_finite(num) && !_isnan(num); }