summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Sternberg <jonathansternberg@gmail.com>2012-05-28 02:09:35 (GMT)
committerJonathan Sternberg <jonathansternberg@gmail.com>2012-05-30 17:27:46 (GMT)
commit2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee (patch)
tree1ec68df3e3385928b3d4ec64198648d7bc8af5e8
parentb6664431cb5275389d6e25d5e29c67796b7281e7 (diff)
downloadNinja-2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee.zip
Ninja-2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee.tar.gz
Ninja-2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee.tar.bz2
Header guards were missing from some header files.
-rw-r--r--src/depfile_parser.h5
-rw-r--r--src/explain.h5
-rw-r--r--src/lexer.h4
-rw-r--r--src/metrics.h5
4 files changed, 19 insertions, 0 deletions
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 <string>
#include <vector>
using namespace std;
@@ -28,3 +31,5 @@ struct DepfileParser {
StringPiece out_;
vector<StringPiece> 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 <stdio.h>
#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 <string>
#include <vector>
using namespace std;
@@ -62,3 +65,5 @@ private:
ScopedMetric metrics_h_scoped(metrics_h_metric);
extern Metrics* g_metrics;
+
+#endif // NINJA_METRICS_H_