diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-09-09 14:50:31 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-09-09 15:47:29 +0200 |
commit | 963af6449f3fbbb3f9fd79547a33e4f3d5e3f0d0 (patch) | |
tree | f2bde488f00cde891761812a58dc55bef8270f63 /src/util.cpp | |
parent | b0a90fbb0c1085646111f7945b9a5b4af0fd3c78 (diff) |
Cleanup some unused macros from util.h
Encapsulate _snprintf/sprintf difference in implementation not header
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index c9edc782c8..3a5770c91c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -284,7 +284,11 @@ 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; |