From 6648692bd7186644ad74356c8fc342ae3b202622 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 21 Nov 2012 01:38:26 +0000 Subject: [PATCH] core: try to fix a general compilation issue caused by inconsistent namespaces between platforms. --- src/core/string.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/string.cpp b/src/core/string.cpp index 13005561..a49addb1 100644 --- a/src/core/string.cpp +++ b/src/core/string.cpp @@ -28,6 +28,8 @@ namespace lol String String::Printf(char const *format, ...) { + using std::vsnprintf; + String ret; va_list ap; @@ -42,7 +44,7 @@ String String::Printf(char const *format, ...) /* We don’t use va_copy because Visual Studio 2010 does not support it. */ va_start(ap, format); - std::vsnprintf(&ret[0], needed, format, ap); + vsnprintf(&ret[0], needed, format, ap); va_end(ap); return ret;