All: Correct format strings for some numbers on Windows (fixes #1794)
Vicki Pfau vi@endrift.com
Sat, 20 Jun 2020 03:02:27 -0700
2 files changed,
3 insertions(+),
4 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.h
→
include/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