-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Instead of making the path from which napi.h is included conditional upon the Node.js version, make the path of node_api.h thusly conditional. This way, no additional modification needs to be made to a dependent's binding.gyp in order to add the EXTERNAL_NAPI preprocessor directive when the C++ wrappers are not used. By this mechanism the C++ wrapper napi.h will also refer to the correct version of node_api.h. Fixes #41
- Loading branch information
Showing
4 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef EXTERNAL_NODE_API_H_ | ||
#define EXTERNAL_NODE_API_H_ | ||
|
||
#define EXTERNAL_NAPI | ||
#include "../src/node_api.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.