Skip to content

Commit a1af6e9

Browse files
committed
Fix gzopen_w() type and add #include for the type.
1 parent 2c42538 commit a1af6e9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

gzguts.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#endif
2828
#include <fcntl.h>
2929

30+
#ifdef _WIN32
31+
# include <stddef.h>
32+
#endif
33+
3034
#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
3135
# include <io.h>
3236
#endif

gzlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ gzFile ZEXPORT gzdopen(fd, mode)
275275
/* -- see zlib.h -- */
276276
#ifdef _WIN32
277277
gzFile ZEXPORT gzopen_w(path, mode)
278-
const w_char *path;
278+
const wchar_t *path;
279279
const char *mode;
280280
{
281281
return gz_open(path, -2, mode);

zlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
17331733
ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp));
17341734
ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp));
17351735
#if defined(_WIN32) && !defined(Z_SOLO)
1736-
ZEXTERN gzFile ZEXPORT gzopen_w OF((const w_char *path,
1736+
ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path,
17371737
const char *mode));
17381738
#endif
17391739

0 commit comments

Comments
 (0)