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.
This commit is contained in:
rofl0r 2024-12-06 18:17:46 +00:00
parent 18f166bc97
commit 9f30151675
1 changed files with 1 additions and 4 deletions

View File

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