Bugfix: __try and __except are MSVC specific

This commit is contained in:
Test User 2024-06-20 23:01:46 +02:00
parent bf5099f57b
commit 5ddfc628dc

View File

@ -567,16 +567,19 @@ int main(int argc, const char** argv)
{ {
#if 1 #if 1
#ifdef _WIN32 #ifdef _WIN32
#ifndef __GNUC__
#ifndef _DEBUG #ifndef _DEBUG
__try __try
{ {
#endif #endif
#endif #endif
#endif
#endif #endif
return main2(argc, argv); return main2(argc, argv);
#if 1 #if 1
#ifdef _WIN32 #ifdef _WIN32
#ifndef __GNUC__
#ifndef _DEBUG #ifndef _DEBUG
} }
__except (seh_filter(GetExceptionCode(), GetExceptionInformation())) __except (seh_filter(GetExceptionCode(), GetExceptionInformation()))
@ -586,4 +589,5 @@ int main(int argc, const char** argv)
#endif #endif
#endif #endif
#endif #endif
#endif
} }