diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2014-12-10 22:55:02 +0000 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2014-12-17 10:36:25 +0100 |
commit | b00154d41a96d15f138ac8552da6a6292c43f547 (patch) | |
tree | 22d9c942ea6e72c3faf223b4a8e02c4638091c7a /src/3rdparty | |
parent | 119508602ea5fcd6cce135e547e6aef9bb93beeb (diff) |
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 <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/masm/wtf/PrintStream.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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) |