Make compilable with VS2015

So Microsoft decided to make their C runtime conform to C99
This commit is contained in:
Peter Tissen committed 2015-03-06 21:01:19 +01:00
1 parent c12d4242a8
commit 30a362f227
3 files changed
+4 -2

No files matched your search

+1 -1
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
+2
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
+1 -1
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