From 0e8a35d127d9e05d44fce30d95af5b3d27bf21d5 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 3 Feb 2021 11:04:51 +0100 Subject: [PATCH] another attempt to get rid of the Clang warning --- Source/m_misc2.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/m_misc2.c b/Source/m_misc2.c index 816a5310..eb11afba 100644 --- a/Source/m_misc2.c +++ b/Source/m_misc2.c @@ -411,6 +411,13 @@ char *M_StringJoin(const char *s, ...) 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(). static int M_vsnprintf(char *buf, size_t buf_len, const char *s, va_list args) {