diff --git a/CHANGES b/CHANGES index bcc2b9b58..ce92bd976 100644 --- a/CHANGES +++ b/CHANGES @@ -22,6 +22,7 @@ Emulation fixes: - 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 diff --git a/include/mgba-util/common.h b/include/mgba-util/common.h index a80fbb5c6..0f4a991bb 100644 --- a/include/mgba-util/common.h +++ b/include/mgba-util/common.h @@ -115,10 +115,8 @@ typedef intptr_t ssize_t; #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