* Make sure to #include <stdio.h> 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
master
Giel van Schijndel 2007-11-06 18:36:37 +00:00
parent 7b2530306c
commit 96d5054729
1 changed files with 4 additions and 1 deletions

View File

@ -372,9 +372,12 @@
# define strncasecmp _strnicmp
# define inline __inline
// Required for the below two inline functions
# include <stdio.h>
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);