use chdir() define from util.h
authorEvan Martin <martine@danga.com>
Sat, 28 Jul 2012 20:35:13 +0000 (13:35 -0700)
committerEvan Martin <martine@danga.com>
Sat, 28 Jul 2012 20:35:13 +0000 (13:35 -0700)
src/ninja.cc

index ca45ab19797c0f8be5cd8dc8ab13e38c3b52f74a..778eb5328c70dab3479a02efe64aa4c366c43d00 100644 (file)
@@ -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));
     }
   }