Util: Fix PRIz on Windows
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Sep 2016 10:25:23 -0700
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/util/common.h
→
src/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"