Allow to build with mingw-clang (#579)
authorMike Hommey <mh@glandium.org>
Tue, 10 Nov 2020 11:41:33 +0000 (20:41 +0900)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 11:41:33 +0000 (06:41 -0500)
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.

src/x86/sysv.S

index 6d5648332cb617295ec752a418d3f80521aac174..d8ab4b02642a57d55da3596822366f070b942653 100644 (file)
@@ -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)