another attempt to get rid of the Clang warning

This commit is contained in:
Fabian Greffrath 2021-02-03 11:04:51 +01:00
parent ccc9675545
commit 0e8a35d127

View File

@ -411,6 +411,13 @@ char *M_StringJoin(const char *s, ...)
return result; return result;
} }
// On Windows, vsnprintf() is _vsnprintf().
#ifdef _WIN32
#if _MSC_VER < 1400 /* not needed for Visual Studio 2008 */
#define vsnprintf _vsnprintf
#endif
#endif
// Safe, portable vsnprintf(). // Safe, portable vsnprintf().
static int M_vsnprintf(char *buf, size_t buf_len, const char *s, va_list args) static int M_vsnprintf(char *buf, size_t buf_len, const char *s, va_list args)
{ {