diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2015-11-22 19:35:34 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-11-25 16:12:13 +0100 |
commit | 962354736fea674b62949a0d2a85023c1f2c57ce (patch) | |
tree | a1329555838ab34c8a1a63350c3fa56549f43113 /gzlib.c | |
parent | ca7d031dadc0c49a3e3c9444448a52757ffbbc6d (diff) |
Fix creating shared library under MSYS64.
Diffstat (limited to 'gzlib.c')
-rw-r--r-- | gzlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) : |