+2003-08-29 Bruno Haible <bruno@clisp.org>
+
+ * vasnprintf.c: Test HAVE_DECL__SNPRINTF instead of HAVE__SNPRINTF.
+ Test HAVE_DECL__SNWPRINTF instead of HAVE__SNWPRINTF.
+
2003-08-24 Bruno Haible <bruno@clisp.org>
* vasnprintf.c (local_wcslen): Protect against multiple definition.
ALLOCA_H=)
AC_SUBST([ALLOCA_H])
-AC_CHECK_FUNCS([snprintf vasprintf wcslen _snprintf])
+AC_CHECK_FUNCS([snprintf vasprintf wcslen])
+AC_CHECK_DECLS([_snprintf])
gt_PRINTF_POSIX
dnl Check for tools needed for formatting the documentation.
# define DIRECTIVES wchar_t_directives
# define PRINTF_PARSE wprintf_parse
# define USE_SNPRINTF 1
-# if HAVE__SNWPRINTF
+# if HAVE_DECL__SNWPRINTF
/* On Windows, the function swprintf() has a different signature than
on Unix; we use the _snwprintf() function instead. */
# define SNPRINTF _snwprintf
# define DIRECTIVE char_directive
# define DIRECTIVES char_directives
# define PRINTF_PARSE printf_parse
-# define USE_SNPRINTF (HAVE__SNPRINTF || HAVE_SNPRINTF)
-# if HAVE__SNPRINTF
+# define USE_SNPRINTF (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF)
+# if HAVE_DECL__SNPRINTF
/* Windows. */
# define SNPRINTF _snprintf
# else