[Zlib-devel] zlib 1.2.6 released
Cosmin Truta
cosmin at cs.toronto.edu
Sun Jan 29 21:38:36 EST 2012
On Sun, Jan 29, 2012 at 8:58 PM, Mark Adler wrote:
>> zlib 1.2.6 has been released.
>
> And ... there's already a problem. io.h needs to be included in gzguts.h for Visual Studio. If someone could take a look at the macro logic there and suggest adjustments to fix this, I would appreciate it. Thanks.
AFAIK <io.h> is a header commonly present on DOS and derivatives (OS/2
and Windows), and that applies to the mainstream compilers (MS C,
Borland C, etc.) as well as the unixish emulators (DJGPP, EMX, Cygwin,
MinGW). It declares open() (and/or _open()) and the other handle-based
I/O functions that are declared in <fcnt.h> and <unistd.h> on Unix.
The obvious fix is to include <io.h> #if defined(_MSC_VER) ||
defined(__TURBOC__). But to get rid of further chase of similar issues
on other platforms, I believe <io.h> may be safely included
conditionally under defined(DOS) || defined(OS2) || defined(WIN32).
If this is annoying, perhaps fix it and release zlib-1.2.7 soon,
rather than wait for the next iteration? Numbers are cheap. (Just 2
cents of opinion.)
Sincerely,
Cosmin
More information about the Zlib-devel
mailing list