mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 717047 - Use <cmath> instead of math.h in nsMathUtils.h. r=bjacob
--HG-- extra : rebase_source : 4062a696008f27124c477367b043bc0f1d96710e
This commit is contained in:
parent
df49639224
commit
b73ab1950d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user