changes for win32 on windows (#468)

This commit is contained in:
Paul Monson
2019-02-19 06:58:25 -05:00
committed by Anthony Green
parent 44a6c28545
commit e1118af505
3 changed files with 1005 additions and 7 deletions
+5
View File
@@ -177,7 +177,12 @@ ffi_prep_cif_machdep(ffi_cif *cif)
bytes = FFI_ALIGN (bytes, t->alignment);
bytes += FFI_ALIGN (t->size, FFI_SIZEOF_ARG);
}
#if defined(_MSC_VER) && defined(_M_IX86)
// stack is not 16-bit aligned on Windows
cif->bytes = bytes;
#else
cif->bytes = FFI_ALIGN (bytes, 16);
#endif
return FFI_OK;
}