summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/msvc_helper_main-win32.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/msvc_helper_main-win32.cc b/src/msvc_helper_main-win32.cc
index 3192821..ef91450 100644
--- a/src/msvc_helper_main-win32.cc
+++ b/src/msvc_helper_main-win32.cc
@@ -59,7 +59,8 @@ void WriteDepFileOrDie(const char* object_path, const CLParser& parse) {
Fatal("writing %s", depfile_path.c_str());
}
const set<string>& headers = parse.includes_;
- for (set<string>::iterator i = headers.begin(); i != headers.end(); ++i) {
+ for (set<string>::const_iterator i = headers.begin();
+ i != headers.end(); ++i) {
if (fprintf(depfile, "%s\n", EscapeForDepfile(*i).c_str()) < 0) {
unlink(object_path);
fclose(depfile);