From 2684f876a9998db99848f452a5ff3438be773a05 Mon Sep 17 00:00:00 2001 From: Hiroaki Nakamura Date: Tue, 9 Oct 2012 22:57:59 +0900 Subject: [PATCH] windows: don't set CRT debug mode on MinGW --- test/runner-win.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/runner-win.c b/test/runner-win.c index 111a6869..8f534bcd 100644 --- a/test/runner-win.c +++ b/test/runner-win.c @@ -24,7 +24,10 @@ #include #include #include -#include +#if !defined(__MINGW32__) +# include +#endif + #include "task.h" #include "runner.h" @@ -44,8 +47,10 @@ void platform_init(int argc, char **argv) { /* Disable the "application crashed" popup. */ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); +#if !defined(__MINGW32__) _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG); _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG); +#endif _setmode(0, _O_BINARY); _setmode(1, _O_BINARY);