mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:33:16 +00:00
[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:
parent
3e427ad17e
commit
5ffc6ceb55
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue