Fix long long format specifier when using MinGW with ANSI STDIO

When using MinGW own, more standard-compliant, STDIO library, the correct
format specified to use for long long values is "%lld" and not "%I64d" as when
using MSVC CRT.

Closes #17736.
This commit is contained in:
Laurent Poujoulat
2016-12-02 20:47:43 +01:00
committed by Vadim Zeitlin
parent a5529fc16c
commit 7c730334a2

View File

@@ -1083,7 +1083,7 @@ typedef wxUint32 wxDword;
#define wxLongLong_t __int64
#define wxLongLongSuffix i64
#define wxLongLongFmtSpec "L"
#elif defined(__MINGW32__)
#elif defined(__MINGW32__) && (__USE_MINGW_ANSI_STDIO != 1)
#define wxLongLong_t long long
#define wxLongLongSuffix ll
#define wxLongLongFmtSpec "I64"