Fix building with Clang for Darwin (OS X 10.6+ and iOS
4.0+)
This commit is contained in:
committed by
Anthony Green
parent
3afaa9a34a
commit
39dccddb60
@@ -280,9 +280,11 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#ifdef X86_WIN32
|
||||
if (cif->abi == FFI_MS_CDECL)
|
||||
cif->flags = FFI_TYPE_MS_STRUCT;
|
||||
else
|
||||
#endif
|
||||
cif->flags = FFI_TYPE_STRUCT;
|
||||
/* allocate space for return value pointer */
|
||||
cif->bytes += ALIGN(sizeof(void*), FFI_SIZEOF_ARG);
|
||||
|
||||
Reference in New Issue
Block a user