[Gdal-dev] NITF fixes

Even Rouault even.rouault at mines-paris.org
Wed Aug 22 18:45:00 EDT 2007


On Wednesday 22 August 2007 01:57:01 Frank Warmerdam wrote:
> 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,

Yes, it was in my work. It uses EQUAL now (fixed in r11930).

Best regards



More information about the Gdal-dev mailing list