diff options
author | Choe Hwanjin <choe.hwanjin@gmail.com> | 2011-07-18 23:30:24 +0900 |
---|---|---|
committer | Choe Hwanjin <choe.hwanjin@gmail.com> | 2011-07-18 23:30:24 +0900 |
commit | 6c4265504571dd3176f6a3a62f94658e4a94d61a (patch) | |
tree | 22efb5ef84ecf86afe96790b5ec95a923332e097 /test | |
parent | 5ab14fa01d32432b8d7ce68789898d3380dd3ed8 (diff) | |
download | libhangul-6c4265504571dd3176f6a3a62f94658e4a94d61a.tar.gz |
AM_ICONV 매크로 사용
freebsd에서 컴파일 오류가 발생하는 것을 막기 위한 것
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@262 8f00fcd2-89fc-0310-932e-b01be5b65e01
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rw-r--r-- | test/hangul.c | 6 |
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; |