mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: define NAPI_VERSION before including node_api.h
Include node.h first to define NAPI_VERSION that node binary is built with. The node.h should also be included first in embedder's use case since it is the primary header file. PR-URL: https://github.com/nodejs/node/pull/48376 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
1 parent
d367b73f43
commit
407ce3fdcb
1 file changed
+4
@@ -1,3 +1,7 @@
|
||||
// Include node.h first to define NAPI_VERSION built with the
|
||||
// binary.
|
||||
// The node.h should also be included first in embedder's use case.
|
||||
#include "node.h"
|
||||
#include "node_api.h"
|
||||
#include "node_test_fixture.h"
|
||||
|
||||
|
||||
Reference in new issue
Block a user