diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-08-25 02:36:16 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-08-28 17:54:07 +0300 |
commit | 09fce8562a3a898e02666e89aa94a2f88fbb766f (patch) | |
tree | 9286702bffa9ff53845d4cd690cf273dcac368d1 /src/node_mutex.h | |
parent | 66e6d7835ea699d8efe5f53974ed7bcffe7f8a9f (diff) |
src: add missing `NODE_WANT_INTERNALS` guards
We generally add these to all headers that are considered
internal to Node.
These aren’t distributed as part of the headers tarball,
so I think this does not have to be semver-major
(and we have been changing the APIs in these headers
freely anyway).
PR-URL: https://github.com/nodejs/node/pull/22514
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_mutex.h')
-rw-r--r-- | src/node_mutex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_mutex.h b/src/node_mutex.h index 9e1d31654f7..de62a0d9ff6 100644 --- a/src/node_mutex.h +++ b/src/node_mutex.h @@ -1,6 +1,8 @@ #ifndef SRC_NODE_MUTEX_H_ #define SRC_NODE_MUTEX_H_ +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS + #include "util.h" #include "uv.h" @@ -184,4 +186,6 @@ MutexBase<Traits>::ScopedUnlock::~ScopedUnlock() { } // namespace node +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS + #endif // SRC_NODE_MUTEX_H_ |