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/udp_wrap.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/udp_wrap.h')
-rw-r--r-- | src/udp_wrap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udp_wrap.h b/src/udp_wrap.h index f79fdd9109f..6375ac2d1b8 100644 --- a/src/udp_wrap.h +++ b/src/udp_wrap.h @@ -25,13 +25,14 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "async_wrap.h" -#include "env.h" #include "handle_wrap.h" #include "uv.h" #include "v8.h" namespace node { +class Environment; + class UDPWrap: public HandleWrap { public: enum SocketType { |