diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-11-13 10:58:31 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-11-13 17:02:27 +0100 |
commit | d6f690f7da2712b79550d909c5cd53432302517c (patch) | |
tree | e29a0fb7fbeed0c0194ea64a6759e8bd504937a9 /src/util.cpp | |
parent | b3e579713f14309a330a44171abd47c2e851a7b0 (diff) |
Use C99 printf statements in mingw
Otherwise, format specifiers such as %llu will not work on XP or
earlier.
This bug was introduced with 51ed9ec9.
http://sourceforge.net/apps/trac/mingw-w64/wiki/gnu%20printf
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/util.cpp b/src/util.cpp index 5411bb2fe3..44186b7325 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -336,11 +336,7 @@ string vstrprintf(const char *format, va_list ap) { va_list arg_ptr; va_copy(arg_ptr, ap); -#ifdef WIN32 - ret = _vsnprintf(p, limit, format, arg_ptr); -#else ret = vsnprintf(p, limit, format, arg_ptr); -#endif va_end(arg_ptr); if (ret >= 0 && ret < limit) break; |