Commit 8cc8f446f5aac13e107161dffbc15d1ee1a58878

Mike Hommey 2020-11-10T20:41:33

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)