-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up include path and flag-check #152
Conversation
Note: I couldn't test this with versions of node other than 8.6.0, because node-addon-api doesn't currently build on those versions (#142). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I tried this with 8.6 (binary distro from nodejs.org) and get this error:
Without the change in this PR, the test build ok. |
@gabrielschulhof am I doing something wrong ? |
@gabrielschulhof ping. |
node_api.h must be included from the normal node include path when we can use the built-in API. The variable needsFlag must be true from version 8.0.0 inclusive until version 8.6.0 non-inclusive. Fixes: nodejs#139
09bca93
to
794e3f5
Compare
@mhdawson all fixed now. |
@gabrielschulhof thanks, landing now. |
Landed as 5a5920a |
node_api.h must be included from the normal node include path when we can use the built-in API. The variable needsFlag must be true from version 8.0.0 inclusive until version 8.6.0 non-inclusive. PR-URL: nodejs/node-addon-api#152 Fixes: nodejs/node-addon-api#139 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
node_api.h must be included from the normal node include path when we can use the built-in API. The variable needsFlag must be true from version 8.0.0 inclusive until version 8.6.0 non-inclusive. PR-URL: nodejs/node-addon-api#152 Fixes: nodejs/node-addon-api#139 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
node_api.h must be included from the normal node include path when we can use the built-in API. The variable needsFlag must be true from version 8.0.0 inclusive until version 8.6.0 non-inclusive. PR-URL: nodejs/node-addon-api#152 Fixes: nodejs/node-addon-api#139 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
node_api.h must be included from the normal node include path when we can use the built-in API. The variable needsFlag must be true from version 8.0.0 inclusive until version 8.6.0 non-inclusive. PR-URL: nodejs/node-addon-api#152 Fixes: nodejs/node-addon-api#139 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
node_api.h must be included from the normal node include path when
we can use the built-in API.
The variable needsFlag must be true from version 8.0.0 inclusive until
version 8.6.0 non-inclusive.
Fixes: #139