Skip to content

Commit 94b4e95

Browse files
committed
fixup! ci: backend: windows: DONTMERGE: crash reporting.
1 parent e372deb commit 94b4e95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/main/main.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <sys/param.h>
2727
#endif
2828

29-
#if defined(_MSC_VER)
29+
#if defined(WIN32)
3030
#include <crtdbg.h>
3131
#endif
3232

@@ -249,7 +249,9 @@ startup_hacks(const char *progname)
249249
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
250250
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
251251
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
252+
#ifndef __MINGW64__
252253
_set_abort_behavior(_CALL_REPORTFAULT | _WRITE_ABORT_MSG, _CALL_REPORTFAULT | _WRITE_ABORT_MSG);
254+
#endif
253255

254256
#if defined(_M_AMD64) && _MSC_VER == 1800
255257

0 commit comments

Comments
 (0)