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 2bde27fd90
commit f6b8f9801c
2 changed files with 3 additions and 4 deletions

View File

@ -4,6 +4,7 @@ Emulation fixes:
- GB MBC: Fix MBC1 RAM enable bit selection
- GB MBC: Fix MBC2 bit selection
Other fixes:
- All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794)
- GB Core: Fix extracting SRAM when none is present
- GBA Savedata: Fix extracting save when not yet configured in-game
Misc:

View File

@ -120,10 +120,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