[PSEH] Guard SEH2 macros for Clang on Linux x64 builders (#8194)

Hackfixing a corner case detected via broken entities of wlanwiz
due to its usage of STLport. This was already done to PSEH3 prior to me.

Corner case examples:
- broken: 1591123914
- "fixed": 1594570563

Guard SEH2 family macros behind #ifndef. CORE-6622 CORE-6905
This commit is contained in:
Vitaly Orekhov 2025-07-07 15:24:27 +03:00 committed by GitHub
parent 3e427ad17e
commit 5ffc6ceb55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,11 +88,13 @@ _Pragma("GCC diagnostic pop")
#define _SEH2_LEAVE goto __seh2_scope_end__; #define _SEH2_LEAVE goto __seh2_scope_end__;
#define _SEH2_VOLATILE volatile #define _SEH2_VOLATILE volatile
#ifndef __try // Conflict with GCC's x64 Linux STL, affects Clang on Linux x64 compilation as well
#define __try _SEH2_TRY #define __try _SEH2_TRY
#define __except _SEH2_EXCEPT #define __except _SEH2_EXCEPT
#define __finally _SEH2_FINALLY #define __finally _SEH2_FINALLY
#define __endtry _SEH2_END #define __endtry _SEH2_END
#define __leave _SEH2_LEAVE #define __leave _SEH2_LEAVE
#endif
#define _exception_code() 0 #define _exception_code() 0
#define _exception_info() ((void*)0) #define _exception_info() ((void*)0)