mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
[PSEH] Fix SEH compatibility macros for dummy PSEH
This is used with Clang, which does have native SEH, but it's broken and can cause the compiler to crash. Previously some code was not handling this and instead used native SEH for clang. Fix this by always using _SEH2_* macros instead of relying on __USE_PSEH2__ to be defined. Try to improve things
This commit is contained in:
parent
12139bcde7
commit
478317abcb
5 changed files with 13 additions and 11 deletions
|
@ -74,7 +74,7 @@ typedef enum _EXCEPTION_DISPOSITION
|
|||
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || (defined(__clang__) && defined(__SEH__))
|
||||
#if (defined(_MSC_VER) || (defined(__clang__) && defined(__SEH__))) && !defined(_exception_code)
|
||||
unsigned long __cdecl _exception_code(void);
|
||||
void *__cdecl _exception_info(void);
|
||||
int __cdecl _abnormal_termination(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue