aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/xpcom-c99math.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-15 12:57:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-15 14:32:38 +0000
commit0c96f83bef7f3cf30ffab693dd90126bb87e8ce1 (patch)
tree237d806ec5f037cd89ba8cb4658d52124533e4b6 /main/xulrunner/xpcom-c99math.patch
parenta50fdbd9146b48006f82f69422e9c475d52a14d6 (diff)
downloadaports-0c96f83bef7f3cf30ffab693dd90126bb87e8ce1.tar.bz2
aports-0c96f83bef7f3cf30ffab693dd90126bb87e8ce1.tar.xz
main/xulrunner: upgrade to 6.0
Diffstat (limited to 'main/xulrunner/xpcom-c99math.patch')
-rw-r--r--main/xulrunner/xpcom-c99math.patch10
1 files changed, 7 insertions, 3 deletions
diff --git a/main/xulrunner/xpcom-c99math.patch b/main/xulrunner/xpcom-c99math.patch
index 955f964eb8..3222c7f206 100644
--- a/main/xulrunner/xpcom-c99math.patch
+++ b/main/xulrunner/xpcom-c99math.patch
@@ -1,11 +1,15 @@
---- mozilla-release.orig/xpcom/ds/nsMathUtils.h
-+++ mozilla-release/xpcom/ds/nsMathUtils.h
-@@ -170,7 +170,7 @@
+--- ./xpcom/ds/nsMathUtils.h.orig
++++ ./xpcom/ds/nsMathUtils.h
+@@ -151,7 +151,11 @@
// NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
return !!_finite(d);
#else
- return finite(d);
++#ifdef _GLIBCXX_CMATH
++ return std::isfinite(d);
++#else
+ return isfinite(d);
++#endif
#endif
}