[Zlib-devel] zlib 1.2.4.1 beta

Mark Adler madler at alumni.caltech.edu
Sun Mar 28 17:31:44 EDT 2010


On Mar 28, 2010, at 2:19 PM, Vincent Torri wrote:
> because there is no unistd.h file distributed with Visual Studio.

unistd.h should not be included unless configure had already found it.  Can you see how it's being included when it's not there?

> it seems that it is declared in stdlib.h :
> 
> http://msdn.microsoft.com/en-us/library/ms861138.aspx

That page appears to refer to _setmode, not setmode.  It seems that setmode is deprecated:

    http://msdn.microsoft.com/en-us/library/ms235459.aspx

and I should be using _setmode instead, which is defined in io.h:

    http://msdn.microsoft.com/en-us/library/tw4k6df8.aspx

So maybe I should change setmode to _setmode under some conditions (so as to not break MSDOS, OS2, maybe __CYGWIN__).  What conditions?

Mark





More information about the Zlib-devel mailing list