Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions hatari/src/cpu/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
#include "cputbl.h"
//#include "keybuf.h"

#ifdef __LIBRETRO__
// _stprintf has incompatibility in MSYS2 MINGW64 UCRT64 as of 2024-02-06 (GCC 14.2.0)
#ifdef __MINGW64__
#undef _stprintf
#define _stprintf sprintf
#endif
#endif

static int trace_mode;
static uae_u32 trace_param[3];

Expand Down
8 changes: 8 additions & 0 deletions hatari/src/cpu/disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
#include "disasm.h"
#include "profile.h"

#ifdef __LIBRETRO__
// _stprintf has incompatibility in MSYS2 MINGW64 UCRT64 as of 2024-02-06 (GCC 14.2.0)
#ifdef __MINGW64__
#undef _stprintf
#define _stprintf sprintf
#endif
#endif

int disasm_flags = DISASM_FLAG_LC_MNEMO | DISASM_FLAG_LC_REG | DISASM_FLAG_LC_SIZE | DISASM_FLAG_LC_HEX |
DISASM_FLAG_CC | DISASM_FLAG_EA | DISASM_FLAG_VAL | DISASM_FLAG_WORDS | DISASM_FLAG_ABSSHORTLONG;
int disasm_min_words = 5;
Expand Down
8 changes: 8 additions & 0 deletions hatari/src/cpu/fpp_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
#include "uae/vm.h"
#include "newcpu.h"

#ifdef __LIBRETRO__
// _stprintf has incompatibility in MSYS2 MINGW64 UCRT64 as of 2024-02-06 (GCC 14.2.0)
#ifdef __MINGW64__
#undef _stprintf
#define _stprintf sprintf
#endif
#endif

#ifdef JIT
uae_u32 xhex_exp_1[] ={0xa2bb4a9a, 0xadf85458, 0x4000};
uae_u32 xhex_ln_10[] ={0xaaa8ac17, 0x935d8ddd, 0x4000};
Expand Down
8 changes: 8 additions & 0 deletions hatari/src/cpu/fpp_softfloat.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
#include "softfloat/softfloat-macros.h"
#include "softfloat/softfloat-specialize.h"

#ifdef __LIBRETRO__
// _stprintf has incompatibility in MSYS2 MINGW64 UCRT64 as of 2024-02-06 (GCC 14.2.0)
#ifdef __MINGW64__
#undef _stprintf
#define _stprintf sprintf
#endif
#endif

#define FPCR_ROUNDING_MODE 0x00000030
#define FPCR_ROUND_NEAR 0x00000000
#define FPCR_ROUND_ZERO 0x00000010
Expand Down
8 changes: 8 additions & 0 deletions hatari/src/cpu/newcpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@
#include "scc.h"
#endif

#ifdef __LIBRETRO__
// _stprintf has incompatibility in MSYS2 MINGW64 UCRT64 as of 2024-02-06 (GCC 14.2.0)
#ifdef __MINGW64__
#undef _stprintf
#define _stprintf sprintf
#endif
#endif


#ifdef JIT
#include "jit/compemu.h"
Expand Down