Browse Source

Merge pull request #522 from janza/iojs-build-fix

Define correct isnan, isinf functions
v1.x
Juriy Zaytsev 10 years ago
parent
commit
eb8f50b5de
  1. 1
      .travis.yml
  2. 7
      src/CanvasRenderingContext2d.cc

1
.travis.yml

@ -3,6 +3,7 @@ node_js:
- '0.8'
- '0.10'
- '0.11'
- 'iojs'
before_install:
- sudo chown -R $USER /usr/local
- sh install

7
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<FunctionTemplate> Context2d::constructor;
/*

Loading…
Cancel
Save