Looks like a libffi bug.
This commit is contained in:
Thomas Heller 2006-04-15 20:23:54 +00:00
parent ab0e284a24
commit eb6f1835b1
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
switch (cif->rtype->type) switch (cif->rtype->type)
{ {
case FFI_TYPE_VOID: case FFI_TYPE_VOID:
#if !defined(X86_WIN32) && !defined(__OpenBSD__) #if !defined(X86_WIN32) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
case FFI_TYPE_STRUCT: case FFI_TYPE_STRUCT:
#endif #endif
case FFI_TYPE_SINT64: case FFI_TYPE_SINT64:
@ -135,7 +135,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
cif->flags = FFI_TYPE_SINT64; cif->flags = FFI_TYPE_SINT64;
break; break;
#if defined(X86_WIN32) || defined(__OpenBSD__) #if defined(X86_WIN32) || defined(__OpenBSD__) || defined(__FreeBSD__)
case FFI_TYPE_STRUCT: case FFI_TYPE_STRUCT:
if (cif->rtype->size == 1) if (cif->rtype->size == 1)
{ {