Permalink
Browse files

Header guards were missing from some header files.

  • Loading branch information...
1 parent b666443 commit 2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee @jsternberg jsternberg committed May 28, 2012
Showing with 19 additions and 0 deletions.
  1. +5 −0 src/depfile_parser.h
  2. +5 −0 src/explain.h
  3. +4 −0 src/lexer.h
  4. +5 −0 src/metrics.h
View
@@ -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_
View
@@ -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_
View
@@ -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 @@ struct Lexer {
const char* last_token_;
};
+#endif // NINJA_LEXER_H_
View
@@ -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 @@ struct Metrics {
ScopedMetric metrics_h_scoped(metrics_h_metric);
extern Metrics* g_metrics;
+
+#endif // NINJA_METRICS_H_

0 comments on commit 2cb91b5

Please sign in to comment.