[Zlib-devel] zlib 1.2.3.4 Winter Solstice Edition
Vincent Torri
vtorri at univ-evry.fr
Tue Dec 29 12:36:24 EST 2009
On Tue, 29 Dec 2009, Cosmin Truta wrote:
> On Tue, Dec 29, 2009 at 10:58 AM, Pedro Alves wrote:
>
>> _WIN32_WCE isn't the best predicate there is to check
>> for CE (this particular case is about a C runtime issue, not
>> an Win32 API issue, although MSFT's headers don't make much
>> of a distinction; mingw32ce does have such a distinction, just
>> like it's big brother MinGW --- mingw vs w32api), but it's
>> good enough.
>
> That's why I was suggesting to check for _WIN32_WCE && _MSC_VER.
> You're not checking WinCE (the platform), but Visual C++ (the
> compiler) under WinCE.
>
>> UNDER_CE would be slightly better, as it would
>> avoid having to define _WIN32_WCE in CFLAGS.
>
> You shouldn't need to add anything to CFLAGS. The macro _WIN32_WCE is
> defined by default under VC++, and it should be defined by default on
> all WinCE compilers, just as _WIN32 should be defined by default on
> all Win32 compilers. Is this not the case with cegcc?
you are wrong, here. _WIN32_WINNT or _WIN32_WCE are used by the
developer to specify the version of the OS that is used in the program.
These macros must have a version number and are passed to the compiler.
Vincent Torri
More information about the Zlib-devel
mailing list