diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2024-02-21 19:31:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 19:31:58 (GMT) |
commit | 5f93e5a6ac2227b40fe63dc098c4cd5b850685a4 (patch) | |
tree | d44f170706a8220d12e6d434f27b34825063e5f7 | |
parent | a1ad0fb190d05c1547f3cd5237972259f1df41b1 (diff) | |
parent | 9a4f715d2b353492b118d0833bad6e506c4398cd (diff) | |
download | Ninja-5f93e5a6ac2227b40fe63dc098c4cd5b850685a4.zip Ninja-5f93e5a6ac2227b40fe63dc098c4cd5b850685a4.tar.gz Ninja-5f93e5a6ac2227b40fe63dc098c4cd5b850685a4.tar.bz2 |
Merge pull request #2385 from icebreaker/missing_include_guards
added missing include guards in order to support easy amalgamation
-rw-r--r-- | src/includes_normalize.h | 5 | ||||
-rw-r--r-- | src/msvc_helper.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/includes_normalize.h b/src/includes_normalize.h index 7d50556..8d29a64 100644 --- a/src/includes_normalize.h +++ b/src/includes_normalize.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef INCLUDES_NORMALIZE_H_ +#define INCLUDES_NORMALIZE_H_ + #include <string> #include <vector> @@ -38,3 +41,5 @@ struct IncludesNormalize { std::string relative_to_; std::vector<StringPiece> split_relative_to_; }; + +#endif // INCLUDES_NORMALIZE_H_ diff --git a/src/msvc_helper.h b/src/msvc_helper.h index 568b9f9..699b0a1 100644 --- a/src/msvc_helper.h +++ b/src/msvc_helper.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef MSVC_HELPER_H_ +#define MSVC_HELPER_H_ + #include <string> std::string EscapeForDepfile(const std::string& path); @@ -30,3 +33,5 @@ struct CLWrapper { void* env_block_; }; + +#endif // MSVC_HELPER_H_ |