Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Header guards were missing from some header files.

  • Loading branch information...
commit 2cb91b528aeeb013bd6c61b3d09ebf3601bf1fee 1 parent b666443
@jsternberg jsternberg authored
View
5 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_
View
5 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_
View
4 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 @@ struct Lexer {
const char* last_token_;
};
+#endif // NINJA_LEXER_H_
View
5 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 @@ struct Metrics {
ScopedMetric metrics_h_scoped(metrics_h_metric);
extern Metrics* g_metrics;
+
+#endif // NINJA_METRICS_H_
Please sign in to comment.
Something went wrong with that request. Please try again.