Skip to content

Commit

Permalink
types.h: let mingw use regparm(3) calling convention for jit
Browse files Browse the repository at this point in the history
this, together with the renaming done in the previous commit, fixes
the jit from crashing when compiled with mingw for x86.
  • Loading branch information
rofl0r committed Dec 6, 2024
1 parent 18f166b commit 9f30151
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions desmume/src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f30151

Please sign in to comment.