From 9f30151675f49b34c85d92608ff5cf3958ba0a2e Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 6 Dec 2024 18:17:46 +0000 Subject: [PATCH] types.h: let mingw use regparm(3) calling convention for jit this, together with the renaming done in the previous commit, fixes the jit from crashing when compiled with mingw for x86. --- desmume/src/types.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/desmume/src/types.h b/desmume/src/types.h index 0a253ef43..a638599be 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -177,10 +177,7 @@ #define FAST_ALIGN DS_ALIGN(4) //--------------------------------------------- -#ifdef __MINGW32__ - #define DESMUME_FASTCALL __attribute__((fastcall)) - #define ASMJIT_CALL_CONV kX86FuncConvGccFastCall -#elif defined (__i386__) && !defined(__clang__) +#if defined (__i386__) && !defined(__clang__) #define DESMUME_FASTCALL __attribute__((regparm(3))) #define ASMJIT_CALL_CONV kX86FuncConvGccRegParm3 #elif defined(_MSC_VER) || defined(__INTEL_COMPILER)