From 42f2debed651064952221f71c555d7200cfe34d3 Mon Sep 17 00:00:00 2001 From: Martins Mozeiko Date: Sat, 7 Oct 2017 21:05:03 -0700 Subject: [PATCH] fixed mingw builds for 32-bit WindowsXP --- pkg2zip_zip.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg2zip_zip.c b/pkg2zip_zip.c index ecded47..2c71f42 100644 --- a/pkg2zip_zip.c +++ b/pkg2zip_zip.c @@ -1,4 +1,9 @@ -#define _CRT_SECURE_NO_DEPRECATE +#if defined(__MINGW32__) && !defined(__x86_64__) +# define _USE_32BIT_TIME_T +# define __CRT__NO_INLINE +#elif defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif #include "pkg2zip_zip.h" #include "pkg2zip_utils.h"