aboutsummaryrefslogtreecommitdiff
path: root/contrib/minizip/miniunz.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-03-28 01:33:46 -0700
committerMark Adler <madler@alumni.caltech.edu>2024-03-29 12:20:37 -0700
commit0f51fb4933fc9ce18199cb2554dacea8033e7fd3 (patch)
treeb002e7dd01cad2ebe0c548b57188e6137154c074 /contrib/minizip/miniunz.c
parentd201f04c72b0881220f5ba75ca19fd0e19fa848b (diff)
downloadzlib-0f51fb4933fc9ce18199cb2554dacea8033e7fd3.tar.gz
zlib-0f51fb4933fc9ce18199cb2554dacea8033e7fd3.tar.bz2
zlib-0f51fb4933fc9ce18199cb2554dacea8033e7fd3.zip
Avert minizip warnings for MSVC.
Diffstat (limited to 'contrib/minizip/miniunz.c')
-rw-r--r--contrib/minizip/miniunz.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
index 8e19534..616c303 100644
--- a/contrib/minizip/miniunz.c
+++ b/contrib/minizip/miniunz.c
@@ -39,6 +39,9 @@
39#endif 39#endif
40 40
41 41
42#ifndef _CRT_SECURE_NO_WARNINGS
43# define _CRT_SECURE_NO_WARNINGS
44#endif
42#include <stdio.h> 45#include <stdio.h>
43#include <stdlib.h> 46#include <stdlib.h>
44#include <string.h> 47#include <string.h>
@@ -83,6 +86,7 @@
83 tmu_date : the SAME new date at the tm_unz format */ 86 tmu_date : the SAME new date at the tm_unz format */
84static void change_file_date(const char *filename, uLong dosdate, tm_unz tmu_date) { 87static void change_file_date(const char *filename, uLong dosdate, tm_unz tmu_date) {
85#ifdef _WIN32 88#ifdef _WIN32
89 (void)tmu_date;
86 HANDLE hFile; 90 HANDLE hFile;
87 FILETIME ftm,ftLocal,ftCreate,ftLastAcc,ftLastWrite; 91 FILETIME ftm,ftLocal,ftCreate,ftLastAcc,ftLastWrite;
88 92