Don't use MSVC specific exception handler for MinGW

This commit is contained in:
Jan Niklas Hasse 2018-01-18 10:20:03 +01:00 committed by Jacob Dufault
parent 7fa1accfdf
commit 358c001d3c

View File

@ -88,7 +88,11 @@ void SetCurrentThreadName(const std::string& thread_name) {
__try {
RaiseException(MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR),
(ULONG_PTR*)&info);
#ifdef _MSC_VER
} __except (EXCEPTION_EXECUTE_HANDLER) {
#else
} catch (...) {
#endif
}
}