X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=charset.h;h=646526bc94006f14ddfcb8fe6e00dc598945acf0;hb=1b124c1023ddce763d17efc8d84a9d53a35be31b;hp=5b1aa658979ebf9493aed9d3e74486c6c8107d10;hpb=8f75834aeadb902879602a82a259f4d3bf9c569c;p=apps%2Fmadmutt.git diff --git a/charset.h b/charset.h index 5b1aa65..646526b 100644 --- a/charset.h +++ b/charset.h @@ -54,28 +54,17 @@ const char *charset_getfirst(const char *); #define MUTT_ICONV_ERROR ((iconv_t)(-1)) -#ifdef HAVE_ICONV_H -# include +#include +iconv_t mutt_iconv_open(const char *, const char *, int); static inline ssize_t -my_iconv(iconv_t ict, const char **in, ssize_t *il, char **out, ssize_t *ol) { +mutt_iconv(iconv_t ict, const char **in, ssize_t *il, char **out, ssize_t *ol) { return iconv(ict, (char **)in, (size_t*)il, out, (size_t*)ol); } -#else -# define iconv_t void* -# define iconv_open(a, b) MUTT_ICONV_ERROR -# define my_iconv(a,b,c,d,e) 0 -# define iconv_close(a) 0 -#endif - #define M_ICONV_HOOK_FROM 1 #define M_ICONV_HOOK_TO 2 -iconv_t mutt_iconv_open(const char *, const char *, int); -ssize_t mutt_iconv(iconv_t, const char **, ssize_t *, char **, ssize_t *, - const char **, const char *); - int mutt_convert_string(char **, const char *, const char *, int); int mutt_convert_nonmime_string (char **);