summaryrefslogtreecommitdiff
path: root/test/addons/null-buffer-neuter
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-05-24 09:54:05 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-05-25 09:54:24 +0200
commiteff96d32dc3dce00f6dc60461d43328965cb214f (patch)
tree4d1dd69ddd7eb502d1a8f2f3216b2a3a4546f936 /test/addons/null-buffer-neuter
parent54785f59e16179dc66f00f97e13dce40661447bd (diff)
downloadandroid-node-v8-eff96d32dc3dce00f6dc60461d43328965cb214f.tar.gz
android-node-v8-eff96d32dc3dce00f6dc60461d43328965cb214f.tar.bz2
android-node-v8-eff96d32dc3dce00f6dc60461d43328965cb214f.zip
src: add include guards to internal headers
For consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: https://github.com/nodejs/node/pull/6948 Refs: https://github.com/nodejs/node/pull/6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/addons/null-buffer-neuter')
-rw-r--r--test/addons/null-buffer-neuter/binding.gyp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/addons/null-buffer-neuter/binding.gyp b/test/addons/null-buffer-neuter/binding.gyp
index 7ede63d94a..50d094746c 100644
--- a/test/addons/null-buffer-neuter/binding.gyp
+++ b/test/addons/null-buffer-neuter/binding.gyp
@@ -2,7 +2,10 @@
'targets': [
{
'target_name': 'binding',
- 'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
+ 'defines': [
+ 'NODE_WANT_INTERNALS=1',
+ 'V8_DEPRECATION_WARNINGS=1',
+ ],
'sources': [ 'binding.cc' ]
}
]