more mingw quirks

This commit is contained in:
Benjamin Sergeant
2021-03-13 18:55:30 -08:00
parent e63ac69ec6
commit 78a670e0c8
2 changed files with 6 additions and 0 deletions

View File

@ -43,12 +43,16 @@ namespace ix
info.dwThreadID = dwThreadID;
info.dwFlags = 0;
#ifndef __GNUC__
__try
{
#endif
RaiseException(
MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), (ULONG_PTR*) &info);
}
#ifndef __GNUC__
__except (EXCEPTION_EXECUTE_HANDLER)
#endif
{
}
}