Browse Source

Add shims so Windows Visual C++ can use C99's isnan() and isinf().

v1.x
Vincent Weevers 11 years ago
committed by David Caldwell
parent
commit
f42a018a8d
  1. 6
      src/CanvasRenderingContext2d.cc

6
src/CanvasRenderingContext2d.cc

@ -21,6 +21,12 @@
#include "FontFace.h" #include "FontFace.h"
#endif #endif
// Windows doesn't support the C99 names for these
#ifndef isnan
#define isnan(x) _isnan(x)
#define isinf(x) (!_finite(x))
#endif
Persistent<FunctionTemplate> Context2d::constructor; Persistent<FunctionTemplate> Context2d::constructor;
/* /*

Loading…
Cancel
Save