From eff96d32dc3dce00f6dc60461d43328965cb214f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 24 May 2016 09:54:05 +0200 Subject: 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 Reviewed-By: James M Snell Reviewed-By: Trevor Norris --- src/tls_wrap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tls_wrap.h') 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_ -- cgit v1.2.3