[Gdal-dev] RE: Re: WinCE port
Martin Daly
Martin.Daly at cadcorp.com
Wed May 19 07:50:57 EDT 2004
Andrey,
> It seems that the _WIN32_WCE constant is not exactly what I need:
>
> E:\>cat t.c
> #include <stdio.h>
>
> int main()
> {
> printf("%d\n", _WIN32_WCE);
> return 0;
> }
>
> E:\>cl t.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> t.c
> t.c(9) : error C2065: '_WIN32_WCE' : undeclared identifier
>
> It is not built-in constant. Do you know where it is defined?
I don't think that it is #define-d in any header file, but instead
magically appears in the CL command-line depending on the build
configurations used in eVC++. So, trying to use it in VC++, as above,
will not work. There is some more information here, under the heading
"The $(CePlatform) Macro":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppc2k
/html/ppc_ource.asp You can see the following in the eVC++ screenshot:
"... /D _WIN32_WCE=$(CEVersion) ...".
We always use it something like this:
#ifdef _WIN32_WCE
#if _WIN32_WCE < 300
...
#endif
#endif
Regards,
Martin Daly,
Technical Director,
Cadcorp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040519/833a547b/attachment.html
More information about the Gdal-dev
mailing list