mirror of https://github.com/odrling/Aegisub
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:
parent
059a554d95
commit
576d7dd8cc
|
@ -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;
|
||||||
} ])
|
} ])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue