summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ninja.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index ca45ab1..778eb53 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -718,11 +718,7 @@ int NinjaMain(int argc, char** argv) {
// can be piped into a file without this string showing up.
if (tool == "")
printf("ninja: Entering directory `%s'\n", working_dir);
-#ifdef _WIN32
- if (_chdir(working_dir) < 0) {
-#else
if (chdir(working_dir) < 0) {
-#endif
Fatal("chdir to '%s' - %s", working_dir, strerror(errno));
}
}