Avoid referencing undefined ABIs on 64-bit Windows builds

64-bit Windows does not have FFI_STDCALL, FFI_THISCALL, or FFI_FASTCALL.
This commit is contained in:
Josh Triplett
2014-03-24 21:21:12 -07:00
parent 28fb197079
commit 48a8eda74a

View File

@@ -318,7 +318,9 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
#endif #endif
#ifndef X86_WIN32 #ifndef X86_WIN32
#ifndef X86_WIN64
if (cif->abi != FFI_STDCALL && cif->abi != FFI_THISCALL && cif->abi != FFI_FASTCALL) if (cif->abi != FFI_STDCALL && cif->abi != FFI_THISCALL && cif->abi != FFI_FASTCALL)
#endif
cif->bytes = (cif->bytes + 15) & ~0xF; cif->bytes = (cif->bytes + 15) & ~0xF;
#endif #endif