summaryrefslogtreecommitdiff
path: root/tools/hangul.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hangul.c')
-rw-r--r--tools/hangul.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/hangul.c b/tools/hangul.c
index 3557106..bc6bba6 100644
--- a/tools/hangul.c
+++ b/tools/hangul.c
@@ -44,6 +44,10 @@
#define UCS4 "UCS-4LE"
#endif
+#ifndef ICONV_CONST
+#define ICONV_CONST
+#endif
+
static const char* program_name = "hangul";
static iconv_t cd_ucs4_to_utf8 = (iconv_t)-1;
@@ -181,7 +185,7 @@ static int
fputs_ucschar(const ucschar* str, FILE* stream)
{
char buf[512];
- char* inbuf;
+ ICONV_CONST char* inbuf;
char* outbuf;
size_t inbytesleft;
size_t outbytesleft;