Skip to content

Commit

Permalink
src: check if NODE_WANT_INTERNALS is defined
Browse files Browse the repository at this point in the history
Otherwise a warning could be printed on some systems.
This fixes nodejs/node-v0.x-archive#8419.

Cherry-picked-from: nodejs/node-v0.x-archive@d87ae24
  • Loading branch information
indutny authored and piscisaureus committed Jan 10, 2015
1 parent 9419092 commit e92dbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ NODE_EXTERN v8::Handle<v8::Value> MakeCallback(

} // namespace node

#if NODE_WANT_INTERNALS
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include "node_internals.h"
#endif

Expand Down

0 comments on commit e92dbf3

Please sign in to comment.