From b73ab1950d709c0265ea53cc116cf544c11b95b1 Mon Sep 17 00:00:00 2001 From: Joe Drew Date: Tue, 10 Jan 2012 18:04:12 -0500 Subject: [PATCH] Bug 717047 - Use instead of math.h in nsMathUtils.h. r=bjacob --HG-- extra : rebase_source : 4062a696008f27124c477367b043bc0f1d96710e --- xpcom/ds/nsMathUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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