Merge branch 'fix_SWIG_V8_VERSION'
* fix_SWIG_V8_VERSION: [javascript][v8] SWIG_V8_VERSION generation method corrected.
This commit is contained in:
commit
f17b6bda93
1 changed files with 4 additions and 1 deletions
|
|
@ -58,7 +58,10 @@
|
||||||
|
|
||||||
#if defined(V8_MAJOR_VERSION) && defined(V8_MINOR_VERSION)
|
#if defined(V8_MAJOR_VERSION) && defined(V8_MINOR_VERSION)
|
||||||
#undef SWIG_V8_VERSION
|
#undef SWIG_V8_VERSION
|
||||||
#define SWIG_V8_VERSION (V8_MAJOR_VERSION * 256 + V8_MINOR_VERSION)
|
#define SWIG_V8_VERSION ((V8_MAJOR_VERSION / 10) * 4096 + \
|
||||||
|
(V8_MAJOR_VERSION % 10) * 256 + \
|
||||||
|
(V8_MINOR_VERSION / 10) * 16 + \
|
||||||
|
(V8_MINOR_VERSION % 10))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue