[Zlib-devel] zlib 1.2.3.4 Winter Solstice Edition

Cosmin Truta cosmin at cs.toronto.edu
Mon Dec 28 23:39:41 EST 2009


On Tue, Dec 22, 2009 at 4:53 PM, Vincent Torri wrote:
>
>> diff -u ../../../zlib-1.2.3/zutil.h ./zutil.h
>> --- ../../../zlib-1.2.3/zutil.h 2005-07-11 22:35:48.000000000 +0200
>> +++ ./zutil.h   2008-07-22 00:29:38.000000000 +0200
>> @@ -17,9 +17,7 @@
>> #include "zlib.h"
>>
>> #ifdef STDC
>> -#  ifndef _WIN32_WCE
>
> about this one, _WIN32_WCE must not be include stddef.h, but __MINGW32CE__
> must include it

Assuming there will possibly be other gcc-based WinCE compilers in the
future, besides MinGW32CE, I thing it's even better to state:

_WIN32_WCE must not include stddef.h, but __GNUC__ must include it.
In fact, stddef.h is one of the few headers that are guaranteed to
come with any installation of gcc, regardless the platform.

On a side, I'm curious: what is the minimum _WIN32_WCE version that
does provide stddef.h? It's a C89 (not C99) header!

Best regards,
Cosmin




More information about the Zlib-devel mailing list