[GRASS-dev] G_strcasecmp() in GRASS 7
Glynn Clements
glynn at gclements.plus.com
Sat Jul 23 09:47:15 EDT 2011
Martin Landa wrote:
> >> do we need our own G_strcasecmp()? Bearing in mind that libc offers
> >> strcasecmp() and strncasecmp().
> >
> > Windows doesn't have these (it has stricmp and/or strcmpi instead).
>
> recently I have used strncasecmp() in db/ogr/execute.c and it's
> compile on Windows without any problem.
MinGW defines it in libmoldname<version>.a, which is linked by
default. It wouldn't work if you built with MSVC, although the same is
true for the POSIX functions (these functions have leading underscores
in MSVCRT; libmoldnames exists mainly to define aliases without the
underscores).
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list