diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-01-10 21:35:14 +0100 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2015-01-10 22:32:11 +0100 |
commit | e92dbf3af91f447b4a5ebd8812ee840fb7eb800c (patch) | |
tree | d77d04e8fd33a4f3b1fe0f5fe93e3dff6e316793 /src | |
parent | 94190924bbde7c36fe30d0ec140f3d3578f38541 (diff) | |
download | node-new-e92dbf3af91f447b4a5ebd8812ee840fb7eb800c.tar.gz |
src: check if NODE_WANT_INTERNALS is defined
Otherwise a warning could be printed on some systems.
This fixes joyent/node#8419.
Cherry-picked-from: https://github.com/joyent/node/commit/d87ae24dfe148e8bd524c57cfd2c9fe0d3dfce93
Diffstat (limited to 'src')
-rw-r--r-- | src/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h index d31bd6d722..fe9dc9a818 100644 --- a/src/node.h +++ b/src/node.h @@ -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 |