mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
src: add include guards to internal headers
For consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: https://github.com/nodejs/node/pull/6948 Refs: https://github.com/nodejs/node/pull/6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
1 parent
54785f59e1
commit
eff96d32dc
53 files changed
+204
-4
No files matched your search
@@ -5,6 +5,8 @@
|
||||
#ifndef SRC_STRING_SEARCH_H_
|
||||
#define SRC_STRING_SEARCH_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include <string.h>
|
||||
|
||||
@@ -674,4 +676,6 @@ size_t SearchString(const Char* haystack,
|
||||
}
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_STRING_SEARCH_H_
|
||||
Reference in new issue
Block a user