mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
Merge pull request #396 from zedxxx/master
Fix to compile with mingw-w64
This commit is contained in:
commit
27687efc01
8
mz_zip.c
8
mz_zip.c
@ -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
|
||||
|
||||
/***************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user