From eb0cf5d89733d0489c0073d262a777c18fc2f246 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Tue, 21 May 2013 20:27:46 -0700 Subject: [PATCH] Massaging different compilers... --- include/bx/string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/bx/string.h b/include/bx/string.h index 8ca666e..3c57cbc 100644 --- a/include/bx/string.h +++ b/include/bx/string.h @@ -191,6 +191,8 @@ namespace bx #if BX_COMPILER_MSVC int32_t len = ::_vsnwprintf_s(_str, _count*sizeof(wchar_t), _count, _format, _argList); return -1 == len ? ::_vscwprintf(_format, _argList) : len; +#elif defined(__MINGW32__) + return ::vsnwprintf(_str, _count, _format, _argList); #else return ::vswprintf(_str, _count, _format, _argList); #endif // BX_COMPILER_MSVC