[Gdal-dev] NITF fixes
Frank Warmerdam
warmerdam at pobox.com
Tue Aug 21 19:57:01 EDT 2007
Simon Perkins wrote:
> Just in case anybody else is also having problems with this, I just
> checked in some fixes to the GDAL NITF format directory to get it to
> compile under visual studio again.
>
> One of the problems was that some new code added earlier today in
> nitffile.c used the strcasecmp() function, which is not available in
> windows. I added a define that translates this to the equivalent
> _stricmp() windows function if _MSC_VER is defined, but I wonder if
> there's a more standard GDAL way to do this? Are these kinds of
> incompatibilities handled by some cpl_ header file somewhere?
Sy,
The more common approach is to use the EQUAL() macro (which returns true
if the strings are equal in a case insensitive way).
Even, perhaps you could switch this? (assuming it was Even't recent work)
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list