From: Jacek Caban <jacek(a)codeweavers.com> --- include/wine/asm.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/wine/asm.h b/include/wine/asm.h index 8c0f4f3361e..6cf75225fd7 100644 --- a/include/wine/asm.h +++ b/include/wine/asm.h @@ -109,7 +109,18 @@ /* import variables */ #ifdef __WINE_PE_BUILD -# ifdef _WIN64 +# ifdef __arm64ec__ +# define __ASM_DEFINE_IMPORT(name) \ + asm( ".data\n\t" \ + ".balign 8\n\t" \ + ".globl __imp_" name "\n" \ + "__imp_" name ":\n\t" \ + ".quad \"#" name "\"\n\t" \ + ".globl __imp_aux_" name "\n" \ + "__imp_aux_" name ":\n\t" \ + ".quad " name "\n\t" \ + ".text" ); +# elif defined(_WIN64) # define __ASM_DEFINE_IMPORT(name) \ __ASM_BLOCK_BEGIN(__LINE__) \ asm( ".data\n\t" \ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6487