From 6644e5440ea3012990f28b760aadc3799dcd2f53 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Sat, 7 Jan 2023 11:52:58 +0530
Subject: [PATCH] headers: Fix macros in except.h

Fixes mold linker

Signed-off-by: Biswapriyo Nath <[email protected]>
---
 mingw-w64-headers/crt/excpt.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/crt/excpt.h b/mingw-w64-headers/crt/excpt.h
index cdcc8e9..0ad224a 100644
--- a/mingw-w64-headers/crt/excpt.h
+++ b/mingw-w64-headers/crt/excpt.h
@@ -49,8 +49,8 @@ extern "C" {
 
 #define GetExceptionCode _exception_code
 #define exception_code _exception_code
-#define GetExceptionInformation (struct _EXCEPTION_POINTERS *)_exception_info
-#define exception_info (struct _EXCEPTION_POINTERS *)_exception_info
+#define GetExceptionInformation() ((struct _EXCEPTION_POINTERS 
*)_exception_info())
+#define exception_info() ((struct _EXCEPTION_POINTERS *)_exception_info())
 #define AbnormalTermination _abnormal_termination
 #define abnormal_termination _abnormal_termination
 
-- 
2.39.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to