Skip to content

Commit

Permalink
Merge pull request ninja-build#2385 from icebreaker/missing_include_g…
Browse files Browse the repository at this point in the history
…uards

added missing include guards in order to support easy amalgamation
  • Loading branch information
jhasse committed Feb 21, 2024
2 parents a1ad0fb + 9a4f715 commit 5f93e5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/includes_normalize.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef INCLUDES_NORMALIZE_H_
#define INCLUDES_NORMALIZE_H_

#include <string>
#include <vector>

Expand All @@ -38,3 +41,5 @@ struct IncludesNormalize {
std::string relative_to_;
std::vector<StringPiece> split_relative_to_;
};

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

#ifndef MSVC_HELPER_H_
#define MSVC_HELPER_H_

#include <string>

std::string EscapeForDepfile(const std::string& path);
Expand All @@ -30,3 +33,5 @@ struct CLWrapper {

void* env_block_;
};

#endif // MSVC_HELPER_H_

0 comments on commit 5f93e5a

Please sign in to comment.