diff options
| author | Michel Zou <xantares09@hotmail.com> | 2022-05-18 18:58:25 +0200 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-05-19 09:34:08 -0600 |
| commit | 2091e30731347ce1362f021016a46500fa0e6e0f (patch) | |
| tree | 10cbbf6bfd5d5988228db50695d2f0c2601c337d | |
| parent | a9bee4cbb2fcb6dc38ef2424711225f8abb2d941 (diff) | |
| download | usermoji-2091e30731347ce1362f021016a46500fa0e6e0f.tar.xz | |
Avoid _set_abort_behavior on MINGW
| -rw-r--r-- | vulkaninfo/vulkaninfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 4e923418..a57910f7 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -1064,7 +1064,7 @@ int main(int argc, char **argv) { if (!parsing_return) return 1; ParsedResults parse_data = parsing_return.value(); -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) // _set_abort_behavior may not be available _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE); |
