Use __MINGW64__ instead of _WIN64

This commit is contained in:
Roza 2020-12-31 18:35:04 -05:00
parent a388192bcd
commit ef546816d6
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ mffi_value miniffi_call_intern(MINIFFI_FUNC target, MiniFFIFuncArgs *p, size_t n
}
#define INTEL_ASM ".intel_syntax noprefix\n"
#ifdef _WIN32
#ifndef __MINGW64__
mffi_value call_asm(MINIFFI_FUNC target, MINIFFIFuncArgs *p, size_t nparams) {
mffi_value ret;
void *old_esp = 0;

View file

@ -13,7 +13,7 @@ extern "C" {
mffi_value, mffi_value);
#else // Windows
#define MINIFFI_MAX_ARGS 32l
#ifdef _WIN64
#ifdef __MINGW64__
typedef uint64_t mffi_value;
#else
typedef uint32_t mffi_value;