all repos — mgba @ 5ef12b597973c00804a60e303ce50753f46faffc

mGBA Game Boy Advance Emulator

All: Correct format strings for some numbers on Windows (fixes #1794)
Vicki Pfau vi@endrift.com
Sat, 20 Jun 2020 03:02:27 -0700
commit

5ef12b597973c00804a60e303ce50753f46faffc

parent

aed783e1f7e5f89c4d556ead59e7dead97fb5625

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M CHANGESCHANGES

@@ -22,6 +22,7 @@ - GBA Video: Fix Hblank timing

- SM83: Emulate HALT bug Other fixes: - All: Improve export headers (fixes mgba.io/i/1738) + - All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794) - Core: Ensure ELF regions can be written before trying - Debugger: Don't skip undefined instructions when debugger attached - GB Core: Fix extracting SRAM when none is present
M include/mgba-util/common.hinclude/mgba-util/common.h

@@ -115,10 +115,8 @@

#if defined(_3DS) || defined(GEKKO) || defined(PSP2) // newlib doesn't support %z properly by default #define PRIz "" -#elif defined(_WIN64) -#define PRIz "I64" -#elif defined(_WIN32) -#define PRIz "" +#elif defined(_MSC_VER) +#define PRIz "I" #else #define PRIz "z" #endif