Add support for Node.js v12

This commit is contained in:
Yegor Yefremov 2020-03-02 14:44:04 +01:00
commit 113d78a083
4 changed files with 59 additions and 10 deletions

View file

@ -56,6 +56,11 @@
%insert(runtime) %{
#include <v8.h>
#if defined(V8_MAJOR_VERSION) && defined(V8_MINOR_VERSION)
#undef SWIG_V8_VERSION
#define SWIG_V8_VERSION (V8_MAJOR_VERSION * 256 + V8_MINOR_VERSION)
#endif
#include <errno.h>
#include <limits.h>
#include <stdlib.h>