simplify some ifdefs
authorEvan Martin <martine@danga.com>
Thu, 23 May 2013 21:09:27 +0000 (14:09 -0700)
committerEvan Martin <martine@danga.com>
Fri, 24 May 2013 16:54:35 +0000 (09:54 -0700)
src/ninja.cc

index 6c4a1f9..4d0c16a 100644 (file)
 #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