Skip to content

Commit 9f30151

Browse files
committed
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.
1 parent 18f166b commit 9f30151

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

desmume/src/types.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,7 @@
177177
#define FAST_ALIGN DS_ALIGN(4)
178178
//---------------------------------------------
179179

180-
#ifdef __MINGW32__
181-
#define DESMUME_FASTCALL __attribute__((fastcall))
182-
#define ASMJIT_CALL_CONV kX86FuncConvGccFastCall
183-
#elif defined (__i386__) && !defined(__clang__)
180+
#if defined (__i386__) && !defined(__clang__)
184181
#define DESMUME_FASTCALL __attribute__((regparm(3)))
185182
#define ASMJIT_CALL_CONV kX86FuncConvGccRegParm3
186183
#elif defined(_MSC_VER) || defined(__INTEL_COMPILER)

0 commit comments

Comments
 (0)