Bug 717047 - Use <cmath> instead of math.h in nsMathUtils.h. r=bjacob

--HG--
extra : rebase_source : 4062a696008f27124c477367b043bc0f1d96710e
This commit is contained in:
Joe Drew 2012-01-10 18:04:12 -05:00
parent df49639224
commit b73ab1950d

View File

@ -41,7 +41,7 @@
#define _USE_MATH_DEFINES /* needed for M_ constants on Win32 */
#include "nscore.h"
#include <math.h>
#include <cmath>
#include <float.h>
#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