From 6d8fefe38077f4d532c256e79cfcaf2a46c5269d Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 12 Nov 2013 16:58:49 +0100 Subject: Now use visual studio 2013 express edition for compilation --- zlib/gzlib.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'zlib') diff --git a/zlib/gzlib.c b/zlib/gzlib.c index fae202ef8..1819af951 100644 --- a/zlib/gzlib.c +++ b/zlib/gzlib.c @@ -99,7 +99,7 @@ local gzFile gz_open(path, fd, mode) #ifdef O_CLOEXEC int cloexec = 0; #endif -#ifdef O_EXCL +#ifdef _O_EXCL int exclusive = 0; #endif @@ -228,14 +228,14 @@ local gzFile gz_open(path, fd, mode) (cloexec ? O_CLOEXEC : 0) | #endif (state->mode == GZ_READ ? - O_RDONLY : - (O_WRONLY | O_CREAT | -#ifdef O_EXCL - (exclusive ? O_EXCL : 0) | + _O_RDONLY : + (_O_WRONLY | _O_CREAT | +#ifdef _O_EXCL + (exclusive ? _O_EXCL : 0) | #endif (state->mode == GZ_WRITE ? - O_TRUNC : - O_APPEND))); + _O_TRUNC : + _O_APPEND))); /* open the file with the appropriate flags (or just use fd) */ state->fd = fd > -1 ? fd : ( -- cgit v1.2.3