[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:
Timo Kreuzer 2024-11-28 12:25:46 +02:00
parent 12139bcde7
commit 478317abcb
5 changed files with 13 additions and 11 deletions

View file

@ -5,10 +5,6 @@
#endif /* _INC_WINDOWS */
#endif
#if defined(__USE_PSEH2__) && !defined(RC_INVOKED)
#include <pseh/pseh2.h>
#endif
#ifndef __RPC_H__
#define __RPC_H__