* 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-861f7616d084master
parent
7b2530306c
commit
96d5054729
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue