[Zlib-devel] zlib 1.2.4.1 beta

Berke Viktor berkeviktor at aol.com
Sun Mar 28 17:37:52 EDT 2010


On 2010.03.28. 23:31, Mark Adler wrote:
> 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

um i just received this as my first mail from the mailing list, but...

#ifdef _MSC_VER, maybe?




More information about the Zlib-devel mailing list