Skip to content

Commit

Permalink
Fix gzopen_w() type and add #include for the type.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Mar 18, 2012
1 parent 2c42538 commit a1af6e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gzguts.h
Expand Up @@ -27,6 +27,10 @@
#endif
#include <fcntl.h>

#ifdef _WIN32
# include <stddef.h>
#endif

#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
# include <io.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion gzlib.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion zlib.h
Expand Up @@ -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

Expand Down

0 comments on commit a1af6e9

Please sign in to comment.