From: Jacek Caban jacek@codeweavers.com
--- include/winnt.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/include/winnt.h b/include/winnt.h index c042afa16c1..81244e4ab31 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -203,6 +203,16 @@ extern "C" { #define DECLSPEC_HOTPATCH #endif
+#ifndef DECLSPEC_CHPE_PATCHABLE +# ifndef __arm64ec__ +# define DECLSPEC_CHPE_PATCHABLE +# elif defined(_MSC_VER) +# define DECLSPEC_CHPE_PATCHABLE __declspec(hybrid_patchable) +# else +# define DECLSPEC_CHPE_PATCHABLE __attribute__((hybrid_patchable)) +# endif +#endif + #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) #define __WINE_ALLOC_SIZE(...) __attribute__((__alloc_size__(__VA_ARGS__))) #else