#include <unistd.h>
#include <inttypes.h>
-#ifdef CONFIG_ICONV
+#ifdef HAVE_ICONV
#include <iconv.h>
#endif
free(str);
}
-#ifdef CONFIG_ICONV
+#ifdef HAVE_ICONV
/** \brief recode buffer to utf-8
* constraint: codepage != 0
* \param data pointer to text buffer
if (!buf)
return 0;
-#ifdef CONFIG_ICONV
+#ifdef HAVE_ICONV
if (codepage)
buf = sub_recode(buf, bufsize, codepage);
if (!buf)
buf = read_file(fname, &bufsize);
if (!buf)
return 0;
-#ifdef CONFIG_ICONV
+#ifdef HAVE_ICONV
if (codepage) {
char* tmpbuf = sub_recode(buf, bufsize, codepage);
free(buf);
buf = read_file(fname, &sz);
if (!buf)
return 1;
-#ifdef CONFIG_ICONV
+#ifdef HAVE_ICONV
if (codepage) {
char* tmpbuf;
tmpbuf = sub_recode(buf, sz, codepage);