https://git.reactos.org/?p=reactos.git;a=commitdiff;h=976c4c10aa7bf56af7dfc0c879b8b944d4612756

commit 976c4c10aa7bf56af7dfc0c879b8b944d4612756
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Wed Apr 28 17:25:15 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Mon May 3 22:00:57 2021 +0200

    [CRT] Fix SEH macros for clang x64
---
 sdk/include/crt/excpt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/include/crt/excpt.h b/sdk/include/crt/excpt.h
index 23a4477527f..8bf543416c1 100644
--- a/sdk/include/crt/excpt.h
+++ b/sdk/include/crt/excpt.h
@@ -70,7 +70,7 @@ typedef enum _EXCEPTION_DISPOSITION
 
 #endif
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || (defined(__clang__) && defined(__SEH__))
 #define GetExceptionCode _exception_code
 #define exception_code _exception_code
 #define GetExceptionInformation (struct _EXCEPTION_POINTERS *)_exception_info

Reply via email to