Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-08-08 20:56:02 +0300
committerAnna Henningsen <anna@addaleax.net>2017-09-14 18:38:38 +0300
commit290315ace7eed6eeeb300754dd68fc1af4d80c9b (patch)
treedb8e56c9709d43c202c58a0576091e77eb2c44c9 /src/node_buffer.h
parent4ae0afb12b6d29c8bb743c4fd560a91fd626b558 (diff)
src: refactor `#include` handling
`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 <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r--src/node_buffer.h3
1 files changed, 1 insertions, 2 deletions
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 {