All: Correct format strings for some numbers on Windows (fixes #1794)

This commit is contained in:
Vicki Pfau 2020-06-20 03:02:27 -07:00
parent aed783e1f7
commit 5ef12b5979
2 changed files with 3 additions and 4 deletions

View File

@ -22,6 +22,7 @@ Emulation fixes:
- SM83: Emulate HALT bug - SM83: Emulate HALT bug
Other fixes: Other fixes:
- All: Improve export headers (fixes mgba.io/i/1738) - 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 - Core: Ensure ELF regions can be written before trying
- Debugger: Don't skip undefined instructions when debugger attached - Debugger: Don't skip undefined instructions when debugger attached
- GB Core: Fix extracting SRAM when none is present - GB Core: Fix extracting SRAM when none is present

View File

@ -115,10 +115,8 @@ typedef intptr_t ssize_t;
#if defined(_3DS) || defined(GEKKO) || defined(PSP2) #if defined(_3DS) || defined(GEKKO) || defined(PSP2)
// newlib doesn't support %z properly by default // newlib doesn't support %z properly by default
#define PRIz "" #define PRIz ""
#elif defined(_WIN64) #elif defined(_MSC_VER)
#define PRIz "I64" #define PRIz "I"
#elif defined(_WIN32)
#define PRIz ""
#else #else
#define PRIz "z" #define PRIz "z"
#endif #endif