summaryrefslogtreecommitdiff
path: root/src/tls_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-05-24 09:54:05 +0200
committerRod Vagg <rod@vagg.org>2016-06-02 22:40:43 +1000
commit64445674f0f2cf4108f7fffe69c09ac6e93a0a39 (patch)
tree008b6635bac34c4a7d396ca7ce436f5f2d354ee6 /src/tls_wrap.h
parent8f623a3c75b9ef782fd5e2793fc153ddb6abcffa (diff)
downloadnode-new-64445674f0f2cf4108f7fffe69c09ac6e93a0a39.tar.gz
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 'src/tls_wrap.h')
-rw-r--r--src/tls_wrap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h
index 471a92056d..3e470f9c6d 100644
--- a/src/tls_wrap.h
+++ b/src/tls_wrap.h
@@ -1,6 +1,8 @@
#ifndef SRC_TLS_WRAP_H_
#define SRC_TLS_WRAP_H_
+#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
+
#include "node.h"
#include "node_crypto.h" // SSLWrap
@@ -165,4 +167,6 @@ class TLSWrap : public AsyncWrap,
} // namespace node
+#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
+
#endif // SRC_TLS_WRAP_H_