2001-08-10 Loren J. Rittle <ljrittle@acm.org>
* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
+ * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
2001-08-06 Tom Tromey <tromey@redhat.com>
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 */
}