+2001-01-15 Bruno Haible <haible@clisp.cons.org>
+
+ * dcigettext.c (_nl_find_msg): Cast the second iconv() arg, to avoid
+ a warning.
+
2001-01-07 Bruno Haible <haible@clisp.cons.org>
* gettextP.h (__gettextdebug): Remove declaration.
goto resize_freemem;
outleft = freemem_size - sizeof (size_t);
- if (iconv (domain->conv, &inptr, &inleft, &outptr, &outleft)
+ if (iconv (domain->conv,
+ (ICONV_CONST char **) &inptr, &inleft,
+ &outptr, &outleft)
!= (size_t) (-1))
{
outbuf = (unsigned char *) outptr;
+2001-01-20 Bruno Haible <haible@clisp.cons.org>
+
+ * gettext.m4 (AM_WITH_NLS): Add a third argument to AC_DEFINE.
+ * lcmessage.m4 (AM_LC_MESSAGES): Likewise.
+
+2001-01-15 Bruno Haible <haible@clisp.cons.org>
+
+ * iconv.m4 (AM_ICONV): Also check whether the iconv declaration
+ has const.
+
2001-01-07 Bruno Haible <haible@clisp.cons.org>
* gettext.m4 (AM_WITH_NLS): Remove third argument. Don't call
])
if test "$am_cv_func_iconv" = yes; then
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
+ AC_MSG_CHECKING([for iconv declaration])
+ AC_CACHE_VAL(am_cv_proto_iconv, [
+ AC_TRY_COMPILE([
+#include <stdlib.h>
+#include <iconv.h>
+extern
+#ifdef __cplusplus
+"C"
+#endif
+#if defined(__STDC__) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);
+#else
+size_t iconv();
+#endif
+], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
+ am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft);"])
+ am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
+ AC_MSG_RESULT([$]{ac_t:-
+ }[$]am_cv_proto_iconv)
+ AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
+ [Define as const if the declaration of iconv() needs const.])
fi
LIBICONV=
if test "$am_cv_lib_iconv" = yes; then