Skip to content

Instantly share code, notes, and snippets.

@indivisible
Last active August 29, 2015 13:57
Show Gist options
  • Save indivisible/9758711 to your computer and use it in GitHub Desktop.
Save indivisible/9758711 to your computer and use it in GitHub Desktop.
diff --git a/src/x86/ffi.c b/src/x86/ffi.c
index a02a8a1..08daf52 100644
--- a/src/x86/ffi.c
+++ b/src/x86/ffi.c
@@ -317,7 +317,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif)
cif->bytes += 4 * sizeof(ffi_arg);
#endif
-#ifndef X86_WIN32
+#if !(defined(X86_WIN32) || defined(X86_WIN64))
if (cif->abi != FFI_STDCALL && cif->abi != FFI_THISCALL && cif->abi != FFI_FASTCALL)
cif->bytes = (cif->bytes + 15) & ~0xF;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment