Browse Source

define correct isnan, isinf functions

v1.x
Josip Janžić 10 years ago
parent
commit
2ed7587379
  1. 7
      src/CanvasRenderingContext2d.cc

7
src/CanvasRenderingContext2d.cc

@ -23,11 +23,16 @@
#endif #endif
// Windows doesn't support the C99 names for these // Windows doesn't support the C99 names for these
#ifndef isnan #ifdef _MSC_VER
#define isnan(x) _isnan(x) #define isnan(x) _isnan(x)
#define isinf(x) (!_finite(x)) #define isinf(x) (!_finite(x))
#endif #endif
#ifndef isnan
#define isnan(x) std::isnan(x)
#define isinf(x) std::isinf(x)
#endif
Persistent<FunctionTemplate> Context2d::constructor; Persistent<FunctionTemplate> Context2d::constructor;
/* /*

Loading…
Cancel
Save