[Zlib-devel] zlib 1.2.3.4 Winter Solstice Edition
Cosmin Truta
cosmin at cs.toronto.edu
Tue Dec 29 11:58:59 EST 2009
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?
Best regards,
Cosmin
More information about the Zlib-devel
mailing list