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