void
gnu::gcj::convert::Input_iconv::done ()
{
+#ifdef HAVE_ICONV
// 50 bytes should be enough for any reset sequence.
size_t avail = 50;
char tmp[avail];
// might be generated in that situation.
iconv_adapter (iconv, (iconv_t) handle, NULL, NULL, &p, &avail);
BytesToUnicode::done ();
+#else /* HAVE_ICONV */
+ // If no iconv, do nothing
+#endif /* HAVE_ICONV */
}
void
void
gnu::gcj::convert::Output_iconv::done ()
{
+#ifdef HAVE_ICONV
// 50 bytes should be enough for any reset sequence.
size_t avail = 50;
char tmp[avail];
// might be generated in that situation.
iconv_adapter (iconv, (iconv_t) handle, NULL, NULL, &p, &avail);
UnicodeToBytes::done ();
+#else /* HAVE_ICONV */
+ // If no iconv, do nothing
+#endif /* HAVE_ICONV */
}