Skip to content

Commit

Permalink
Merge pull request zlib-ng#396 from zedxxx/master
Browse files Browse the repository at this point in the history
Fix to compile with mingw-w64
  • Loading branch information
nmoinvaz authored May 16, 2019
2 parents 8ef4540 + 65447dd commit 27687ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mz_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
#include <ctype.h> /* tolower */
#include <stdio.h> /* snprintf */

#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__MINGW32__)
# define localtime_r(t1,t2) (localtime_s(t2,t1) == 0 ? t1 : NULL)
# if (_MSC_VER < 1900)
# define snprintf _snprintf
# endif
#endif
#if defined(_MSC_VER) && (_MSC_VER < 1900)
# define snprintf _snprintf
#endif

/***************************************************************************/
Expand Down

0 comments on commit 27687ef

Please sign in to comment.