libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit f5e70e8254048770daf9661a2eae5f6e0f1191de
parent 2d71f5b7d33f7f6eb0a5d280962c35c5a028a428
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 22 Sep 2012 20:31:18 +0000

trying to make code build even without GNU iconv

Diffstat:
Msrc/common/convert.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/common/convert.c b/src/common/convert.c @@ -40,6 +40,7 @@ EXTRACTOR_common_convert_to_utf8 (const char *input, size_t len, const char *charset) { +#if HAVE_ICONV size_t tmpSize; size_t finSize; char *tmp; @@ -84,6 +85,9 @@ EXTRACTOR_common_convert_to_utf8 (const char *input, free (tmp); iconv_close (cd); return ret; +#else + return strdup (input); +#endif } /* end of convert.c */