make _isnan windows specific

git-svn-id: http://skia.googlecode.com/svn/trunk@2804 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-12-05 21:51:36 +00:00
parent 61873a59d7
commit c2f8e9a500

View File

@ -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