From a1af6e96e35dfc3adfa2acba01883c14115f1090 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 17 Mar 2012 21:42:30 -0700 Subject: [PATCH] Fix gzopen_w() type and add #include for the type. --- gzguts.h | 4 ++++ gzlib.c | 2 +- zlib.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gzguts.h b/gzguts.h index 13e8179..ee3f281 100644 --- a/gzguts.h +++ b/gzguts.h @@ -27,6 +27,10 @@ #endif #include +#ifdef _WIN32 +# include +#endif + #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) # include #endif diff --git a/gzlib.c b/gzlib.c index e90b6ad..b99c26c 100644 --- a/gzlib.c +++ b/gzlib.c @@ -275,7 +275,7 @@ gzFile ZEXPORT gzdopen(fd, mode) /* -- see zlib.h -- */ #ifdef _WIN32 gzFile ZEXPORT gzopen_w(path, mode) - const w_char *path; + const wchar_t *path; const char *mode; { return gz_open(path, -2, mode); diff --git a/zlib.h b/zlib.h index 361d72f..901339c 100644 --- a/zlib.h +++ b/zlib.h @@ -1733,7 +1733,7 @@ ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int)); ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp)); ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp)); #if defined(_WIN32) && !defined(Z_SOLO) -ZEXTERN gzFile ZEXPORT gzopen_w OF((const w_char *path, +ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path, const char *mode)); #endif