From fe3f99c92a8437a353ba12075d6c3273d04c4e3f Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 26 Jul 2010 10:04:43 +0200 Subject: merged non-android-specific changes from android branch --- junklib.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index a679c5bc..a7ae5983 100644 --- a/junklib.c +++ b/junklib.c @@ -15,12 +15,17 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "junklib.h" #include #include #include +#if HAVE_ICONV #define LIBICONV_PLUG #include +#endif #include #include #include @@ -29,9 +34,6 @@ #include "playlist.h" #include "utf8.h" #include "plugins.h" -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #define MAX_TEXT_FRAME_SIZE 1024 #define MAX_CUESHEET_FRAME_SIZE 10000 @@ -153,6 +155,7 @@ extract_f32 (unsigned char *buf) { int junk_iconv (const char *in, int inlen, char *out, int outlen, const char *cs_in, const char *cs_out) { +#if HAVE_ICONV iconv_t cd = iconv_open (cs_out, cs_in); if (cd == (iconv_t)-1) { return -1; @@ -179,6 +182,10 @@ junk_iconv (const char *in, int inlen, char *out, int outlen, const char *cs_in, } //trace ("iconv out: %s (len=%d)\n", out, pout - out); return pout - out; +#elif TARGET_ANDROID + // TODO: android charset conversion + return 0; +#endif } -- cgit v1.2.3