summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2015-11-22 19:35:34 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-11-25 16:12:13 +0100
commit962354736fea674b62949a0d2a85023c1f2c57ce (patch)
treea1329555838ab34c8a1a63350c3fa56549f43113 /gzlib.c
parentca7d031dadc0c49a3e3c9444448a52757ffbbc6d (diff)
Fix creating shared library under MSYS64.
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzlib.c b/gzlib.c
index f7b4ca3..44b14a0 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -178,7 +178,7 @@ local gzFile gz_open(const void *path, int fd, const char *mode) {
/* open the file with the appropriate flags (or just use fd) */
state->fd = fd > -1 ? fd : (
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__MINGW__)
fd == -2 ? _wopen(path, oflag, 0666) :
#elif __CYGWIN__
fd == -2 ? open(state->path, oflag, 0666) :