--- src/utf8.c-orig 2006-05-05 02:37:09 +0000 +++ src/utf8.c 2006-05-05 02:47:16 +0000 @@ -24,7 +24,9 @@ // Standard includes #include +#if !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV) #include +#endif #include #include #include @@ -35,6 +37,7 @@ static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string) { +#if !defined(HAVE_CONFIG_H) || defined(HAVE_ICONV) const size_t buffer_inc = 80; // Increment buffer size in 80 bytes step const char *charset; iconv_t cd; @@ -95,6 +98,9 @@ free(dest_buffer); // free buffer free(src_buffer); // free string return strdup(fallback_string); // and return fallback string +#else // No iconv available + return strdup(fallback_string); // and return fallback string +#endif } char *degree_sign()