1 #ifndef NVIM_ICONV_H 2 #define NVIM_ICONV_H 3 4 #include "auto/config.h" 5 6 #ifdef HAVE_ICONV 7 # include <errno.h> 8 # include <iconv.h> 9 10 // define some missing constants if necessary 11 # ifndef EILSEQ 12 # define EILSEQ 123 13 # endif 14 # define ICONV_ERRNO errno 15 # define ICONV_E2BIG E2BIG 16 # define ICONV_EINVAL EINVAL 17 # define ICONV_EILSEQ EILSEQ 18 #endif 19 20 #endif // NVIM_ICONV_H 21