[Gdal-dev] RE: Re: WinCE port

Andrey Kiselev dron at ak4719.spb.edu
Wed May 19 07:16:33 EDT 2004


On Wed, May 19, 2004 at 09:36:04AM +0100, Martin Daly wrote:
> > I have tried to use Embedded VC 4.0 with the libtiff library and
> > found a big problem: how to deduce the compiler used to build the
> > code? MSVC defines _MSC_VER constant which can be used to identify
> > the compiler. Does something similar exist for the embedded edition,
> > which can be used to distinguish it from other compilers and from
> > the 'normal' MSVC? Or we should use manually defined flag in the
> > configuration files?
> 
> You can use the _WIN32_WCE constant.

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?

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list