From: Mark Adler Date: Mon, 16 Jan 2017 17:38:36 +0000 (-0800) Subject: Cygwin does not have _wopen(), so do not create gzopen_w() there. X-Git-Tag: v1.2.12~61 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=5ff989033e8b839b80ce716a1452acf7664e2ff4;p=zlib.git Cygwin does not have _wopen(), so do not create gzopen_w() there. --- diff --git a/gzguts.h b/gzguts.h index 990a4d2..6378d46 100644 --- a/gzguts.h +++ b/gzguts.h @@ -39,7 +39,7 @@ # include #endif -#if defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) # define WIDECHAR #endif diff --git a/zlib.h b/zlib.h index 21636c2..5daf4f2 100644 --- a/zlib.h +++ b/zlib.h @@ -1893,7 +1893,7 @@ ZEXTERN int ZEXPORT inflateValidate OF((z_streamp, int)); ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF ((z_streamp)); ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp)); ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp)); -#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(Z_SOLO) +#if defined(_WIN32) && !defined(Z_SOLO) ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path, const char *mode)); #endif