all repos — mgba @ 2000c8e2dfc050a817a96449cadd5f5f09b3e58a

mGBA Game Boy Advance Emulator

Util: Fix PRIz on Windows
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Sep 2016 10:25:23 -0700
commit

2000c8e2dfc050a817a96449cadd5f5f09b3e58a

parent

d74092b29132ddf64bf0a59aa36a12927ca6c1d4

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/util/common.hsrc/util/common.h

@@ -70,7 +70,11 @@ #define ATOMIC_CMPXCHG(DST, EXPECTED, OP) ((DST == EXPECTED) ? ((DST = OP), true) : false)

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