"Arnd Hanses" <[EMAIL PROTECTED]> wrote:

> #ifndef strcasecmp
> #define strcasecmp stricmp  // emx uses M$ fn name instead of posix
> name??!
> #define _strcasecmp stricmp
> #endif

Better to use AC_CHECK_FUNCS(strcasecmp strncasecmp stricmp strnicmp) and

#if !defined(HAVE_STRCASECMP) && defined(HAVE_STRICMP)
#define strcasecmp stricmp
#endif
#if !defined(HAVE_STRNCASECMP) && defined(HAVE_STRNICMP)
#define strncasecmp strnicmp
#endif

, that is, in case you have to use autoconf...

FYI non of strcasecmp, strncasecmp, stricmp nor strnicmp is in ANSI nor
in POSIX.  GNU libc is not always comforming to ANSI/POSIX standard.
In quite a few aspects, EMX is much more comforming to ANSI/POSIX.
However, strcasecmp and strncasecmp are in UNIX95 and UNIX98.

Regards,
        SMiyata
^

Reply via email to