diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 74b5924..50c8abd 100755 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -23,11 +23,16 @@ #endif // Windows doesn't support the C99 names for these -#ifndef isnan +#ifdef _MSC_VER #define isnan(x) _isnan(x) #define isinf(x) (!_finite(x)) #endif +#ifndef isnan +#define isnan(x) std::isnan(x) +#define isinf(x) std::isinf(x) +#endif + Persistent Context2d::constructor; /*