Hi,

I accidentally pushed a patch from my local tree together with the Wine imports. Sorry about that. I am attaching it here for review and will modify or revert it if needed.


Thanks,

Jacek
From 816d52fc7225a9fa781e9f22948b791f45af1cf2 Mon Sep 17 00:00:00 2001
From: Jacek Caban <[email protected]>
Date: Sat, 21 Mar 2026 14:39:00 +0100
Subject: [PATCH] headers: Add DECLSPEC_CHPE_PATCHABLE define

Signed-off-by: Jacek Caban <[email protected]>
---
 mingw-w64-headers/include/winnt.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/mingw-w64-headers/include/winnt.h 
b/mingw-w64-headers/include/winnt.h
index 188234a1c..d094e075f 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
@@ -268,6 +268,14 @@ extern "C" {
 #endif
 #endif
 
+#ifndef DECLSPEC_CHPE_PATCHABLE
+#ifdef __arm64ec__
+#define DECLSPEC_CHPE_PATCHABLE __declspec(hybrid_patchable)
+#else
+#define DECLSPEC_CHPE_PATCHABLE
+#endif
+#endif
+
 #define DECLSPEC_DEPRECATED_DDK
 #define PRAGMA_DEPRECATED_DDK 0
 
-- 
2.52.0

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

Reply via email to