diff options
-rw-r--r-- | src/ninja.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index cd34b1a..3b381b7 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -361,7 +361,7 @@ int NinjaMain::ToolBrowse(int argc, char* argv[]) { } #endif // _WIN32 -#if defined(_WIN32) +#if defined(_MSC_VER) int NinjaMain::ToolMSVC(int argc, char* argv[]) { // Reset getopt: push one argument onto the front of argv, reset optind. argc++; @@ -636,7 +636,7 @@ const Tool* ChooseTool(const string& tool_name) { { "browse", "browse dependency graph in a web browser", Tool::RUN_AFTER_LOAD, &NinjaMain::ToolBrowse }, #endif -#if defined(_WIN32) +#if defined(_MSC_VER) { "msvc", "build helper for MSVC cl.exe (EXPERIMENTAL)", Tool::RUN_AFTER_FLAGS, &NinjaMain::ToolMSVC }, #endif |