aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkFloatingPoint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h
index 30cd770959..b204e48595 100644
--- a/include/core/SkFloatingPoint.h
+++ b/include/core/SkFloatingPoint.h
@@ -63,13 +63,14 @@ static inline float sk_float_copysign(float x, float y) {
#define sk_float_mod(x,y) fmodf(x,y)
#define sk_float_exp(x) expf(x)
#define sk_float_log(x) logf(x)
- #define sk_float_isNaN(x) _isnan(x)
#endif
#ifdef SK_BUILD_FOR_WIN
#define sk_float_isfinite(x) _finite(x)
+ #define sk_float_isNaN(x) _isnan(x)
#else
#define sk_float_isfinite(x) isfinite(x)
+ #define sk_float_isNaN(x) isnan(x)
#endif
#ifdef SK_USE_FLOATBITS