We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e372deb commit 94b4e95Copy full SHA for 94b4e95
src/backend/main/main.c
@@ -26,7 +26,7 @@
26
#include <sys/param.h>
27
#endif
28
29
-#if defined(_MSC_VER)
+#if defined(WIN32)
30
#include <crtdbg.h>
31
32
@@ -249,7 +249,9 @@ startup_hacks(const char *progname)
249
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
250
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
251
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
252
+#ifndef __MINGW64__
253
_set_abort_behavior(_CALL_REPORTFAULT | _WRITE_ABORT_MSG, _CALL_REPORTFAULT | _WRITE_ABORT_MSG);
254
+#endif
255
256
#if defined(_M_AMD64) && _MSC_VER == 1800
257
0 commit comments