Fix node.js deprecated warnings >= v10.12.0

This commit is contained in:
mochizk 2019-03-13 21:43:21 +09:00
commit 1e981dfc23
6 changed files with 45 additions and 23 deletions

View file

@ -44,6 +44,8 @@
#ifdef BUILDING_NODE_EXTENSION
%insert("runtime") %{
#include <node.h>
//Older version of node.h does not include this
#include <node_version.h>
%}
#endif