aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-05-30 21:40:39 +0200
committerPierre Ossman <ossman@cendio.se>2020-05-31 11:09:14 +0200
commit3538f163b1f995af8e86190978392e60dfa49e7c (patch)
tree86c5f8d2a300bf4bcdb19a2abbe660c0c7d7f029
parent69dd940686aadc259a8638ae2154981b80b37af3 (diff)
downloadtigervnc-3538f163b1f995af8e86190978392e60dfa49e7c.tar.gz
tigervnc-3538f163b1f995af8e86190978392e60dfa49e7c.zip
Use mingw's stdio routines where needed
It allows us to use the more standard format specifiers.
-rw-r--r--tests/perf/encperf.cxx11
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;