aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-05 21:51:36 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-05 21:51:36 +0000
commitc2f8e9a500e62a6b88aef84e91e4a440905758cb (patch)
treeb3a28d7f08b8d881d347874fc7e776afee1768e9 /include
parent61873a59d7f7e2a3ef58af6efe594eb8228a86ec (diff)
make _isnan windows specific
git-svn-id: http://skia.googlecode.com/svn/trunk@2804 2bbb7eff-a529-9590-31e7-b0007b416f81
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