mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-17 14:51:20 -08:00
In ffi.d improve the list of names of valid ABIs by copying the #ifdef chain from libffi.h
This commit is contained in:
parent
4d57f2f7e9
commit
22801c4e8b
1 changed files with 8 additions and 4 deletions
12
src/c/ffi.d
12
src/c/ffi.d
|
|
@ -136,12 +136,16 @@ static struct {
|
|||
ffi_abi abi;
|
||||
} ecl_foreign_cc_table[] = {
|
||||
{@':default', FFI_DEFAULT_ABI},
|
||||
#if !defined(X86_WIN64)
|
||||
# if defined(X86) || defined(X86_64) || defined(X86_WIN32) || defined(X86_ANY)
|
||||
#ifdef X86_WIN32
|
||||
{@':cdecl', FFI_SYSV},
|
||||
{@':sysv', FFI_SYSV},
|
||||
{@':unix64', FFI_UNIX64}
|
||||
# endif
|
||||
{@':stdcall', FFI_STDCALL},
|
||||
#elif defined(X86_WIN64)
|
||||
{@':win64', FFI_WIN64},
|
||||
#elsif defined(X86_ANY) || defined(X86) || defined(X86_64)
|
||||
{@':cdecl', FFI_SYSV},
|
||||
{@':sysv', FFI_SYSV},
|
||||
{@':unix64', FFI_UNIX64},
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue