From 2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee Mon Sep 17 00:00:00 2001 From: Jonathan Sternberg Date: Sun, 27 May 2012 22:09:35 -0400 Subject: Header guards were missing from some header files. --- src/depfile_parser.h | 5 +++++ src/explain.h | 5 +++++ src/lexer.h | 4 ++++ src/metrics.h | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/src/depfile_parser.h b/src/depfile_parser.h index c900956..1e6ebb5 100644 --- a/src/depfile_parser.h +++ b/src/depfile_parser.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_DEPFILE_PARSER_H_ +#define NINJA_DEPFILE_PARSER_H_ + #include #include using namespace std; @@ -28,3 +31,5 @@ struct DepfileParser { StringPiece out_; vector ins_; }; + +#endif // NINJA_DEPFILE_PARSER_H_ diff --git a/src/explain.h b/src/explain.h index 021f0d4..d4f6a6c 100644 --- a/src/explain.h +++ b/src/explain.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_EXPLAIN_H_ +#define NINJA_EXPLAIN_H_ + #include #define EXPLAIN(fmt, ...) { \ @@ -20,3 +23,5 @@ } extern bool g_explaining; + +#endif // NINJA_EXPLAIN_H_ diff --git a/src/lexer.h b/src/lexer.h index 75c1b2f..19008d7 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_LEXER_H_ +#define NINJA_LEXER_H_ + #include "string_piece.h" // Windows may #define ERROR. @@ -95,3 +98,4 @@ private: const char* last_token_; }; +#endif // NINJA_LEXER_H_ diff --git a/src/metrics.h b/src/metrics.h index 74f5f8f..af6e9a2 100644 --- a/src/metrics.h +++ b/src/metrics.h @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#ifndef NINJA_METRICS_H_ +#define NINJA_METRICS_H_ + #include #include using namespace std; @@ -62,3 +65,5 @@ private: ScopedMetric metrics_h_scoped(metrics_h_metric); extern Metrics* g_metrics; + +#endif // NINJA_METRICS_H_ -- cgit v0.12