From 7268b3d7d8ef137da82987cc469449bf2a3e9020 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Fri, 31 May 2013 21:50:08 +0000 Subject: Fixed warnings. --- src/htscharset.h | 14 +++++++------- src/htscoremain.c | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/htscharset.h b/src/htscharset.h index bb7f3da..c22978e 100644 --- a/src/htscharset.h +++ b/src/htscharset.h @@ -128,6 +128,13 @@ extern char *hts_convertUCS4StringToUTF8(const hts_UCS4 *s, size_t nChars); **/ extern size_t hts_stringLengthUCS4(const hts_UCS4 *s); +/** + * Write the Unicode character 'uc' in 'dest' of maximum size 'size'. + * Return the number of bytes written, or 0 upon error. + * Note: does not \0-terminate the destination buffer. + **/ +extern size_t hts_writeUTF8(hts_UCS4 uc, char *dest, size_t size); + /* WIN32 specific. */ #ifdef _WIN32 @@ -147,13 +154,6 @@ extern char *hts_convertUCS2StringToUTF8(LPWSTR woutput, int wsize); **/ extern char *hts_convertStringSystemToUTF8(const char *s, size_t size); -/** - * Write the Unicode character 'uc' in 'dest' of maximum size 'size'. - * Return the number of bytes written, or 0 upon error. - * Note: does not \0-terminate the destination buffer. - **/ -extern size_t hts_writeUTF8(hts_UCS4 uc, char *dest, size_t size); - #endif #endif diff --git a/src/htscoremain.c b/src/htscoremain.c index c2ff520..cbc5971 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -45,6 +45,7 @@ Please visit our Website: http://www.httrack.com #include "htsmodules.h" #include "htszlib.h" #include "htscharset.h" +#include "htsencoding.h" #include #if USE_BEGINTHREAD -- cgit v1.2.3