Skip to content

Commit

Permalink
Make compilable with VS2015
Browse files Browse the repository at this point in the history
So Microsoft decided to make their C runtime conform to C99
  • Loading branch information
Bigpet committed Mar 6, 2015
1 parent c12d424 commit 30a362f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ext/libzip/zipint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion net/url.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30a362f

Please sign in to comment.