Skip to content

Commit 071a411

Browse files
committed
[PSEH] Strange hack to handle in x64 Linux compilations
1 parent 86e3075 commit 071a411

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/lib/pseh/include/pseh/pseh2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ _Pragma("GCC diagnostic pop")
8888
#define _SEH2_LEAVE goto __seh2_scope_end__;
8989
#define _SEH2_VOLATILE volatile
9090

91+
#ifndef __try // Conflict with GCC's x64 Linux STL, affects Clang on Linux x64 compilation as well
9192
#define __try _SEH2_TRY
9293
#define __except _SEH2_EXCEPT
9394
#define __finally _SEH2_FINALLY
9495
#define __endtry _SEH2_END
9596
#define __leave _SEH2_LEAVE
97+
#endif
9698
#define _exception_code() 0
9799
#define _exception_info() ((void*)0)
98100

0 commit comments

Comments
 (0)