aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/xpcom-c99math.patch
diff options
context:
space:
mode:
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
}