diff options
author | Alexandre Ferrando <alferpal@gmail.com> | 2019-10-26 17:59:34 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-11-05 12:10:36 +0300 |
commit | ec7b69ff054c631dc82eb7fca5981d482ba62221 (patch) | |
tree | fe2024480b428a0fe1eabebb07b04f07d2d1202b /src/node_crypto_bio.h | |
parent | ae813602142fc4e4d31e2c4ecc7b5ef5b481a558 (diff) |
src: change env.h includes for forward declarations
Due to how the Environment class is used through the codebase,
there are a lot of includes referencing either env.h or env-inl.h.
This can cause that when any development touches those libraries,
a lot of files have to be recompiled.
This commit attempts to change those includes by forward declarations
when possible to mitigate the issue.
Refs: https://github.com/nodejs/node/issues/27531
PR-URL: https://github.com/nodejs/node/pull/30133
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/node_crypto_bio.h')
-rw-r--r-- | src/node_crypto_bio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_crypto_bio.h b/src/node_crypto_bio.h index fef91750d54..5de943806a9 100644 --- a/src/node_crypto_bio.h +++ b/src/node_crypto_bio.h @@ -26,11 +26,13 @@ #include "node_crypto.h" #include "openssl/bio.h" -#include "env.h" #include "util.h" #include "v8.h" namespace node { + +class Environment; + namespace crypto { // This class represents buffers for OpenSSL I/O, implemented as a singly-linked |