Fix building with Clang for Darwin (OS X 10.6+ and iOS

4.0+)
This commit is contained in:
Zachary Waldowski
2012-04-05 12:32:41 -04:00
committed by Anthony Green
parent 3afaa9a34a
commit 39dccddb60
14 changed files with 6960 additions and 5 deletions

View File

@@ -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);