From 5ddfc628dc4eed194e5f6083f30138a2f2c32f5b Mon Sep 17 00:00:00 2001 From: Test User Date: Thu, 20 Jun 2024 23:01:46 +0200 Subject: [PATCH] Bugfix: __try and __except are MSVC specific --- oscar64/oscar64.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oscar64/oscar64.cpp b/oscar64/oscar64.cpp index 207c9fb..04ba2c4 100644 --- a/oscar64/oscar64.cpp +++ b/oscar64/oscar64.cpp @@ -567,16 +567,19 @@ int main(int argc, const char** argv) { #if 1 #ifdef _WIN32 +#ifndef __GNUC__ #ifndef _DEBUG __try { #endif #endif +#endif #endif return main2(argc, argv); #if 1 #ifdef _WIN32 +#ifndef __GNUC__ #ifndef _DEBUG } __except (seh_filter(GetExceptionCode(), GetExceptionInformation())) @@ -586,4 +589,5 @@ int main(int argc, const char** argv) #endif #endif #endif +#endif }