diff --git a/xpcom/ds/nsMathUtils.h b/xpcom/ds/nsMathUtils.h index bf830e0cb87..b0b0b02ea7d 100644 --- a/xpcom/ds/nsMathUtils.h +++ b/xpcom/ds/nsMathUtils.h @@ -41,7 +41,7 @@ #define _USE_MATH_DEFINES /* needed for M_ constants on Win32 */ #include "nscore.h" -#include +#include #include #ifdef SOLARIS @@ -133,7 +133,7 @@ inline NS_HIDDEN_(bool) NS_finite(double d) #elif defined(XP_DARWIN) // Darwin has deprecated |finite| and recommends |isfinite|. The former is // not present in the iOS SDK. - return isfinite(d); + return std::isfinite(d); #else return finite(d); #endif