summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am2
-rw-r--r--test/hangul.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index e47221b..8c7c80b 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,7 +3,7 @@ noinst_PROGRAMS = hangul hanja
hangul_CFLAGS =
hangul_SOURCES = hangul.c
-hangul_LDADD = ../hangul/libhangul.la $(LTLIBINTL)
+hangul_LDADD = ../hangul/libhangul.la $(LTLIBINTL) $(LTLIBICONV)
hanja_CFLAGS =
hanja_SOURCES = hanja.c
diff --git a/test/hangul.c b/test/hangul.c
index 4023759..7f829a3 100644
--- a/test/hangul.c
+++ b/test/hangul.c
@@ -15,10 +15,14 @@
#define UCS4 "UCS-4LE"
#endif
+#ifndef ICONV_CONST
+#define ICONV_CONST
+#endif
+
void ucs4_to_utf8(char *buf, const ucschar *ucs4, size_t bufsize)
{
size_t n;
- char* inbuf;
+ ICONV_CONST char* inbuf;
size_t inbytesleft;
char* outbuf;
size_t outbytesleft;