From b00154d41a96d15f138ac8552da6a6292c43f547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Martins?= Date: Wed, 10 Dec 2014 22:55:02 +0000 Subject: Fix build with MinGW due to -Werror On Windows the correct format is %I64d and %I64u: https://stackoverflow.com/questions/2844/how-do-you-printf-an-unsigned-long-long-int Similar ifdefs are found in testlib/qtestcase.cpp Change-Id: Ic65e60f7d391285e292ac8c65944d8af3be205f4 Reviewed-by: Friedemann Kleint Reviewed-by: Simon Hausmann --- src/3rdparty/masm/wtf/PrintStream.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/3rdparty') diff --git a/src/3rdparty/masm/wtf/PrintStream.cpp b/src/3rdparty/masm/wtf/PrintStream.cpp index 3bf362e281..02dfb11b4f 100644 --- a/src/3rdparty/masm/wtf/PrintStream.cpp +++ b/src/3rdparty/masm/wtf/PrintStream.cpp @@ -82,12 +82,20 @@ void printInternal(PrintStream& out, unsigned long value) void printInternal(PrintStream& out, long long value) { +#if OS(WINDOWS) + out.printf("%I64d", value); +#else out.printf("%lld", value); +#endif } void printInternal(PrintStream& out, unsigned long long value) { +#if OS(WINDOWS) + out.printf("%I64u", value); +#else out.printf("%llu", value); +#endif } void printInternal(PrintStream& out, float value) -- cgit v1.2.3