From 96d50547292e12dd2932b1563cf7230e4079bf31 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Tue, 6 Nov 2007 18:36:37 +0000 Subject: [PATCH] * Make sure to #include when compiling on MSVC so that those inline replacements for snprintf and vsnprintf will actually compile.... * Lets terminate statements with a semi-colon!! git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2745 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/framework/wzglobal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/framework/wzglobal.h b/lib/framework/wzglobal.h index 41fb86f53..c7f7c2eca 100644 --- a/lib/framework/wzglobal.h +++ b/lib/framework/wzglobal.h @@ -372,9 +372,12 @@ # define strncasecmp _strnicmp # define inline __inline +// Required for the below two inline functions +# include + static inline int vsnprintf(char* str, size_t size, const char* format, va_list ap) { - int count + int count; // Find out how long the resulting string is count = _vscprintf(format, ap);