diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-05-30 21:40:39 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-05-31 11:09:14 +0200 |
commit | 3538f163b1f995af8e86190978392e60dfa49e7c (patch) | |
tree | 86c5f8d2a300bf4bcdb19a2abbe660c0c7d7f029 /tests/perf | |
parent | 69dd940686aadc259a8638ae2154981b80b37af3 (diff) | |
download | tigervnc-3538f163b1f995af8e86190978392e60dfa49e7c.tar.gz tigervnc-3538f163b1f995af8e86190978392e60dfa49e7c.zip |
Use mingw's stdio routines where needed
It allows us to use the more standard format specifiers.
Diffstat (limited to 'tests/perf')
-rw-r--r-- | tests/perf/encperf.cxx | 11 |
1 files 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 <stdio.h> #include <stdlib.h> #include <math.h> @@ -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; |