aboutsummaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-01-10 21:35:14 +0100
committerBert Belder <bertbelder@gmail.com>2015-01-10 22:32:11 +0100
commite92dbf3af91f447b4a5ebd8812ee840fb7eb800c (patch)
treed77d04e8fd33a4f3b1fe0f5fe93e3dff6e316793 /src/node.h
parent94190924bbde7c36fe30d0ec140f3d3578f38541 (diff)
downloadandroid-node-v8-e92dbf3af91f447b4a5ebd8812ee840fb7eb800c.tar.gz
android-node-v8-e92dbf3af91f447b4a5ebd8812ee840fb7eb800c.tar.bz2
android-node-v8-e92dbf3af91f447b4a5ebd8812ee840fb7eb800c.zip
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/node.h')
-rw-r--r--src/node.h2
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