From 080314c22ff73fd9e6bc085e0e7053a09a3a6592 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sat, 28 Jul 2012 13:35:13 -0700 Subject: use chdir() define from util.h --- src/ninja.cc | 4 ---- 1 file changed, 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)); } } -- cgit v0.12