From 290315ace7eed6eeeb300754dd68fc1af4d80c9b Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 8 Aug 2017 19:56:02 +0200 Subject: src: refactor `#include` handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `node_internals.h` already includes the most common headers, so double includes can be avoided in a lot of cases. Also don’t include `node_internals.h` from `node.h` implicitly anymore, as that is mostly unnecessary. PR-URL: https://github.com/nodejs/node/pull/14697 Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann Reviewed-By: James M Snell --- src/node_buffer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/node_buffer.h') diff --git a/src/node_buffer.h b/src/node_buffer.h index acf9b23c3b3..d680eb90eb1 100644 --- a/src/node_buffer.h +++ b/src/node_buffer.h @@ -22,8 +22,7 @@ #ifndef SRC_NODE_BUFFER_H_ #define SRC_NODE_BUFFER_H_ -#include "node.h" -#include "v8.h" +#include "node_internals.h" namespace node { -- cgit v1.2.3