From: Mike Hommey Date: Tue, 10 Nov 2020 11:41:33 +0000 (+0900) Subject: Allow to build with mingw-clang (#579) X-Git-Tag: upstream/3.4.2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cc8f446f5aac13e107161dffbc15d1ee1a58878;p=platform%2Fupstream%2Flibffi.git Allow to build with mingw-clang (#579) For some reason, compiling sysv.S with mingw-clang fails with: ``` error: invalid variant 'ffi_closure_inner@8' ``` This can be fixed (worked around?) by quoting the symbol. This works fine with mingw-gcc too. --- diff --git a/src/x86/sysv.S b/src/x86/sysv.S index 6d56483..d8ab4b0 100644 --- a/src/x86/sysv.S +++ b/src/x86/sysv.S @@ -56,8 +56,8 @@ /* Handle win32 fastcall name mangling. */ #ifdef X86_WIN32 -# define ffi_call_i386 @ffi_call_i386@8 -# define ffi_closure_inner @ffi_closure_inner@8 +# define ffi_call_i386 "@ffi_call_i386@8" +# define ffi_closure_inner "@ffi_closure_inner@8" #else # define ffi_call_i386 C(ffi_call_i386) # define ffi_closure_inner C(ffi_closure_inner)