From 3538f163b1f995af8e86190978392e60dfa49e7c Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 30 May 2020 21:40:39 +0200 Subject: [PATCH] Use mingw's stdio routines where needed It allows us to use the more standard format specifiers. --- tests/perf/encperf.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/perf/encperf.cxx b/tests/perf/encperf.cxx index 1b14151b..990cc440 100644 --- a/tests/perf/encperf.cxx +++ b/tests/perf/encperf.cxx @@ -26,6 +26,8 @@ * are not encoded in the file and must be specified by the user. */ +#define __USE_MINGW_ANSI_STDIO 1 + #include #include #include @@ -499,13 +501,8 @@ int main(int argc, char **argv) printf("Core usage (total): %g (+/- %g %%)\n", median, meddev); -#ifdef WIN32 - printf("Encoded bytes: %I64d\n", runs[0].bytes); - printf("Raw equivalent bytes: %I64d\n", runs[0].rawEquivalent); -#else - printf("Encoded bytes: %lld\n", runs[0].bytes); - printf("Raw equivalent bytes: %lld\n", runs[0].rawEquivalent); -#endif + printf("Encoded bytes: %llu\n", runs[0].bytes); + printf("Raw equivalent bytes: %llu\n", runs[0].rawEquivalent); printf("Ratio: %g\n", runs[0].ratio); return 0; -- 2.39.5