aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/xpcom-c99math.patch
blob: 3222c7f20630c2b35bb5667a6eb9017db0debace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ./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
 }