diff options
Diffstat (limited to 'src/xutf8/utf8Input.c')
-rw-r--r-- | src/xutf8/utf8Input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xutf8/utf8Input.c b/src/xutf8/utf8Input.c index 5682ac7..9a0c2e5 100644 --- a/src/xutf8/utf8Input.c +++ b/src/xutf8/utf8Input.c @@ -24,7 +24,7 @@ #include <string.h> #include <stdlib.h> -#if HAVE_LIBC_ICONV +#ifdef HAVE_LIBC_ICONV #include <iconv.h> #endif /* @@ -56,7 +56,7 @@ typedef struct { static int XConvertEucTwToUtf8(char* buffer_return, int len) { /* FIXME */ -#if HAVE_LIBC_ICONV +#ifdef HAVE_LIBC_ICONV iconv_t cd; int cdl; #else @@ -69,7 +69,7 @@ XConvertEucTwToUtf8(char* buffer_return, int len) { /*b = */ buf = (char*) malloc((unsigned)len); memcpy(buf, buffer_return, (unsigned) len); -#if HAVE_LIBC_ICONV +#ifdef HAVE_LIBC_ICONV l = cdl = len; cd = iconv_open("EUC-TW", "UTF-8"); iconv(cd, &b, &len, &buffer_return, &cdl); |