Opened 16 years ago

Last modified 16 years ago

#296 closed defect (fixed)

CTS-related enum value names clash with CTS for COM

Reported by: martin.daly@… Owned by: warmerdam
Priority: high Milestone:
Component: OGR_SRS Version: unspecified
Severity: minor Keywords:
Cc: martin.daly@…


We use the MSVC++ #import directive for importing COM type libraries.  For the 
OGC_XX type libraries we either use the no_namespace qualifier, or immediately 
follow the #import with a using namespace directive.  This is because they all 
have an XX_ prefix (for interopera*******bility, of course).

If this is done in the same file as a #include that leads to ogr_srs_api.h, 
then we get a compiler error, because, for example, CS_AO_Other is defined 

I couldn't find them being used anywhere in GDAL/OGR, so would it be possible 
to either remove or rename them?


Change History (1)

comment:1 Changed 16 years ago by warmerdam


I have renamed a bunch of CT enumeration values in OGR enums. 

Let me know if any problems remain.
Note: See TracTickets for help on using tickets.