Unlike the other tests the iconv const check is just looking for the actual function signature it doesn't use it, we don't need to initialise anything..

Originally committed to SVN as r4451.
This commit is contained in:
Amar Takhar 2010-06-06 03:11:41 +00:00
parent 059a554d95
commit 576d7dd8cc
1 changed files with 1 additions and 5 deletions

View File

@ -480,11 +480,7 @@ if test "$agi_cv_with_iconv" = "yes"; then
AC_AGI_COMPILE([iconv (const)], [iconv_const], [$ICONV_CFLAGS], [$ICONV_LDFLAGS],[ AC_AGI_COMPILE([iconv (const)], [iconv_const], [$ICONV_CFLAGS], [$ICONV_LDFLAGS],[
#include <iconv.h> #include <iconv.h>
int main(void) { int main(void) {
iconv_t cd = iconv_open("UTF-16", "UTF-8"); size_t iconv (iconv_t cd, const char** in, size_t *inbytesleft, char** out, size_t *outbytesleft);
const char *in = "in";
char *out = new char();
size_t res, inbytesleft, outbytesleft;
res = iconv(cd, &in, &inbytesleft, &out, &outbytesleft);
return 0; return 0;
} ]) } ])