Skip to content

Commit

Permalink
Header guards were missing from some header files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsternberg committed May 30, 2012
1 parent b666443 commit 2cb91b5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/depfile_parser.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.


#ifndef NINJA_DEPFILE_PARSER_H_
#define NINJA_DEPFILE_PARSER_H_

#include <string> #include <string>
#include <vector> #include <vector>
using namespace std; using namespace std;
Expand All @@ -28,3 +31,5 @@ struct DepfileParser {
StringPiece out_; StringPiece out_;
vector<StringPiece> ins_; vector<StringPiece> ins_;
}; };

#endif // NINJA_DEPFILE_PARSER_H_
5 changes: 5 additions & 0 deletions src/explain.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.


#ifndef NINJA_EXPLAIN_H_
#define NINJA_EXPLAIN_H_

#include <stdio.h> #include <stdio.h>


#define EXPLAIN(fmt, ...) { \ #define EXPLAIN(fmt, ...) { \
Expand All @@ -20,3 +23,5 @@
} }


extern bool g_explaining; extern bool g_explaining;

#endif // NINJA_EXPLAIN_H_
4 changes: 4 additions & 0 deletions src/lexer.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.


#ifndef NINJA_LEXER_H_
#define NINJA_LEXER_H_

#include "string_piece.h" #include "string_piece.h"


// Windows may #define ERROR. // Windows may #define ERROR.
Expand Down Expand Up @@ -95,3 +98,4 @@ struct Lexer {
const char* last_token_; const char* last_token_;
}; };


#endif // NINJA_LEXER_H_
5 changes: 5 additions & 0 deletions src/metrics.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.


#ifndef NINJA_METRICS_H_
#define NINJA_METRICS_H_

#include <string> #include <string>
#include <vector> #include <vector>
using namespace std; using namespace std;
Expand Down Expand Up @@ -62,3 +65,5 @@ struct Metrics {
ScopedMetric metrics_h_scoped(metrics_h_metric); ScopedMetric metrics_h_scoped(metrics_h_metric);


extern Metrics* g_metrics; extern Metrics* g_metrics;

#endif // NINJA_METRICS_H_

0 comments on commit 2cb91b5

Please sign in to comment.