aports/main/xulrunner/xpcom-c99math.patch
2011-08-15 14:32:38 +00:00

16 lines
323 B
Diff

--- ./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
}