1 #ifndef _LIBICONV_H 2 #define _LIBICONV_H 3 #include <stddef.h> 4 #ifndef WINICONV_CONST 5 # ifdef ICONV_CONST 6 # define WINICONV_CONST ICONV_CONST 7 # else 8 # define WINICONV_CONST const 9 # endif 10 #endif 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 typedef void* iconv_t; 15 iconv_t iconv_open(const char *tocode, const char *fromcode); 16 int iconv_close(iconv_t cd); 17 size_t iconv(iconv_t cd, WINICONV_CONST char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); 18 #ifdef __cplusplus 19 } 20 #endif 21 #endif 22