X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2Fmp-charconv.h;h=8218c29a9bda95c9a97b22aab4d9458bfa0f7c14;hb=a4f8b029b86d2ca1612a9c2e2795ccea27b15276;hp=ab6f65d924f71708bf6723afb296c0ebe45558a6;hpb=91c499892f07ad6494351a1c1985a0d3e2600a25;p=libucw.git diff --git a/charset/mp-charconv.h b/charset/mp-charconv.h index ab6f65d9..8218c29a 100644 --- a/charset/mp-charconv.h +++ b/charset/mp-charconv.h @@ -10,17 +10,19 @@ #ifndef _CHARSET_MP_CHARCONV_H #define _CHARSET_MP_CHARCONV_H -#include "lib/mempool.h" -#include "charset/charconv.h" +#include +#include + +#ifdef CONFIG_UCW_CLEAN_ABI +#define mp_strconv ucw_mp_strconv +#endif byte *mp_strconv(struct mempool *mp, const byte *s, uns cs_in, uns cs_out); -static inline byte * -mp_strconv_to_utf8(struct mempool *mp, const byte *s, uns cs_in) +static inline byte *mp_strconv_to_utf8(struct mempool *mp, const byte *s, uns cs_in) { return mp_strconv(mp, s, cs_in, CONV_CHARSET_UTF8); } -static inline byte * -mp_strconv_from_utf8(struct mempool *mp, const byte *s, uns cs_out) +static inline byte *mp_strconv_from_utf8(struct mempool *mp, const byte *s, uns cs_out) { return mp_strconv(mp, s, CONV_CHARSET_UTF8, cs_out); } #endif