Fix regression: add an include for Node.js header.
This commit is contained in:
parent
caa92740d3
commit
8b10c47ed8
2 changed files with 5 additions and 2 deletions
|
|
@ -1,7 +1,11 @@
|
|||
%insert("init") %{
|
||||
#include <node.h>
|
||||
%}
|
||||
|
||||
%define %node(moduleName)
|
||||
%insert("post-init") %{
|
||||
extern "C" {
|
||||
NODE_MODULE(moduleName, moduleName ## _initialize)
|
||||
}
|
||||
%}
|
||||
%enddef
|
||||
%enddef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue