Make compilable with VS2015

So Microsoft decided to make their C runtime conform to C99
This commit is contained in:
Peter Tissen 2015-03-06 00:19:31 -08:00
parent c12d4242a8
commit 30a362f227
3 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
// Implement C99 functions and similar that are missing in MSVC.
#ifdef _MSC_VER
#if defined(_MSC_VER) && _MSC_VER < 1900
int c99_snprintf(char* str, size_t size, const char* format, ...);
#define snprintf c99_snprintf

View File

@ -40,7 +40,9 @@
#define ZIP_EXTERN
#define fseeko fseek
#define ftello ftell
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#ifndef strcasecmp
#define strcasecmp _stricmp
#endif

View File

@ -7,7 +7,7 @@
#include "base/basictypes.h"
#if defined(_MSC_VER)
#if defined(_MSC_VER) && _MSC_VER < 1900
#undef snprintf
#define snprintf _snprintf
#endif