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:
Ben Noordhuis committed 2016-05-25 09:54:24 +02:00
1 parent 54785f59e1
commit eff96d32dc
53 files changed
+204 -4

No files matched your search

+4
View File
@@ -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_