Skip to content

Commit

Permalink
Fix jit calling convention on x86.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed Apr 3, 2018
1 parent ab6a763 commit 2085971
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion desmume/src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,20 @@
#define FAST_ALIGN DS_ALIGN(4)
//---------------------------------------------

#ifdef __MINGW32__
#if defined(__MINGW32__) && !defined(__i386__)
#undef FASTCALL
#define FASTCALL __attribute__((fastcall))
#define ASMJIT_CALL_CONV kX86FuncConvCompatFastCall
#elif defined (__i386__) && !defined(__clang__)
#undef FASTCALL
#define FASTCALL __attribute__((regparm(3)))
#define ASMJIT_CALL_CONV kX86FuncConvGccRegParm3
#elif defined(_MSC_VER) || defined(__INTEL_COMPILER)
#undef FASTCALL
#define FASTCALL
#define ASMJIT_CALL_CONV kX86FuncConvDefault
#else
#undef FASTCALL
#define FASTCALL
#define ASMJIT_CALL_CONV kX86FuncConvDefault
#endif
Expand Down

0 comments on commit 2085971

Please sign in to comment.