Debian Codegraph @

js/src/ctypes/libffi-patches/mingw-clang.patch

raw
1 https://github.com/libffi/libffi/pull/579
2
3 diff --git a/js/src/ctypes/libffi/src/x86/sysv.S b/js/src/ctypes/libffi/src/x86/sysv.S
4 index 7c9598c93c984..b73492795d6d0 100644
5 --- a/js/src/ctypes/libffi/src/x86/sysv.S
6 +++ b/js/src/ctypes/libffi/src/x86/sysv.S
7 @@ -51,18 +51,18 @@
8 #ifdef __ELF__
9 # define ENDF(X) .type X,@function; .size X, . - X
10 #else
11 # define ENDF(X)
12 #endif
13
14 /* Handle win32 fastcall name mangling. */
15 #ifdef X86_WIN32
16 -# define ffi_call_i386 @ffi_call_i386@8
17 -# define ffi_closure_inner @ffi_closure_inner@8
18 +# define ffi_call_i386 "@ffi_call_i386@8"
19 +# define ffi_closure_inner "@ffi_closure_inner@8"
20 #else
21 # define ffi_call_i386 C(ffi_call_i386)
22 # define ffi_closure_inner C(ffi_closure_inner)
23 #endif
24
25 /* This macro allows the safe creation of jump tables without an
26 actual table. The entry points into the table are all 8 bytes.
27 The use of ORG asserts that we're at the correct location. */