[Zlib-devel] zlib 1.2.4.1 beta

Vincent Torri vtorri at univ-evry.fr
Sun Mar 28 18:14:36 EDT 2010



On Sun, 28 Mar 2010, 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?

That's my fault, i run configure to test mingw compiler before testing 
Visua Studio solution. From a fresh tarball, i don't have to modify any 
header file. The library is built, but the programs are not. Missing .obj 
files in masmx86 directory, it seems.

>> 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

That's Microsoft bullshit :

"Use the ISO C++ conformant _setmode instead."

in any case _setmode is more ISO C++ conformant than setmode. They are 
doing that for most of the CRT. Also, the link you have given is not for 
Windows CE, but for Windows desktop.

> and I should be using _setmode instead, which is defined in io.h:
>
>    http://msdn.microsoft.com/en-us/library/tw4k6df8.aspx

again, that link is not for Windows CE but for Windows desktop.

The MinGW header files, like Visual Studio header files, have both 
functions: setmode and _setmode.

Vincent Torri




More information about the Zlib-devel mailing list