summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moudry <gmoudry@gmail.com>2012-04-26 14:49:34 (GMT)
committerJiri Moudry <gmoudry@gmail.com>2012-04-26 14:49:34 (GMT)
commit28c53397ed6876363a93e5a0ac3cd54ed66b662f (patch)
treeb180ff2005784cec738ee1e8b7dc5b8b97f01199 /src
parent755c501084412a0896312af05cda6d4227136174 (diff)
downloadNinja-28c53397ed6876363a93e5a0ac3cd54ed66b662f.zip
Ninja-28c53397ed6876363a93e5a0ac3cd54ed66b662f.tar.gz
Ninja-28c53397ed6876363a93e5a0ac3cd54ed66b662f.tar.bz2
Changed #ifdef _WIN32 to #ifdef _MSC_VER to make sure that MinGW compiles happily
Diffstat (limited to 'src')
-rw-r--r--src/ninja.cc2
-rw-r--r--src/util.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 5807dcd..1a02fd6 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -615,7 +615,7 @@ int RunBuild(Globals* globals, int argc, char** argv) {
} // anonymous namespace
-#ifdef _WIN32
+#ifdef _MSC_VER
/// This handler processes fatal crashes that you can't catch
/// Test example: C++ exception in a stack-unwind-block
diff --git a/src/util.cc b/src/util.cc
index d240e1c..e59ff74 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -294,7 +294,7 @@ string StripAnsiEscapeCodes(const string& in) {
return stripped;
}
-#ifdef _WIN32
+#ifdef _MSC_VER
typedef BOOL (WINAPI *MiniDumpWriteDumpFunc) (
IN HANDLE,
IN DWORD,
@@ -367,6 +367,6 @@ int exception_filter(unsigned int code, struct _EXCEPTION_POINTERS *ep) {
return EXCEPTION_EXECUTE_HANDLER;
}
#else
- //on Linux, core dumps are created automatically, no code needed
+ //on Linux or MinGW, core dumps are created automatically, no code needed
#endif