*/
#include "config.h"
-
-#include "glib.h"
+#include "glibconfig.h"
#ifndef G_OS_WIN32
#include <iconv.h>
#include <string.h>
#include <stdlib.h>
-#include "gprintfint.h"
-#include "gthreadprivate.h"
-#include "gunicode.h"
-
#ifdef G_OS_WIN32
#include "win_iconv.c"
#endif
#undef STRICT
#endif
+#include "gconvert.h"
+
+#include "gprintfint.h"
+#include "gslist.h"
+#include "gstrfuncs.h"
+#include "gtestutils.h"
+#include "gthread.h"
+#include "gthreadprivate.h"
+#include "gunicode.h"
+
+#ifdef NEED_ICONV_CACHE
+#include "glist.h"
+#include "ghash.h"
+#endif
+
#include "glibintl.h"
#if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H)
have_error = TRUE;
break;
default:
- {
- int errsv = errno;
-
- g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_FAILED,
- _("Error during conversion: %s"),
- g_strerror (errsv));
- }
+ if (error)
+ {
+ int errsv = errno;
+
+ g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_FAILED,
+ _("Error during conversion: %s"),
+ g_strerror (errsv));
+ }
have_error = TRUE;
break;
}