+2006-11-01 Bruno Haible <bruno@clisp.org>
+
+ * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
+ already declared in <string.h>.
+ * lib/strcase.h (strncasecmp): Don't declare it if yes.
+
2006-11-01 Bruno Haible <bruno@clisp.org>
* m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
returning less than, equal to or greater than zero if S1 is
lexicographically less than, equal to or greater than S2.
Note: This function can not work correctly in multibyte locales. */
+#if ! HAVE_DECL_STRNCASECMP
extern int strncasecmp (const char *s1, const char *s2, size_t n);
+#endif
#ifdef __cplusplus
AC_DEFUN([gl_FUNC_STRNCASECMP],
[
AC_REPLACE_FUNCS(strncasecmp)
+ AC_CHECK_DECLS(strncasecmp)
if test $ac_cv_func_strncasecmp = no; then
gl_PREREQ_STRNCASECMP
fi