diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ninja.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 6c4a1f9..4d0c16a 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -42,9 +42,14 @@ #include "util.h" #include "version.h" +#ifdef _MSC_VER // Defined in msvc_helper_main-win32.cc. int MSVCHelperMain(int argc, char** argv); +// Defined in minidump-win32.cc. +void CreateWin32MiniDump(_EXCEPTION_POINTERS* pep); +#endif + namespace { struct Tool; @@ -763,13 +768,6 @@ int RunBuild(Builder* builder, int argc, char** argv) { #ifdef _MSC_VER -} // anonymous namespace - -// Defined in minidump-win32.cc. -void CreateWin32MiniDump(_EXCEPTION_POINTERS* pep); - -namespace { - /// This handler processes fatal crashes that you can't catch /// Test example: C++ exception in a stack-unwind-block /// Real-world example: ninja launched a compiler to process a tricky |