]> wimlib.net Git - wimlib/blobdiff - src/encoding.c
Remove buffer_io.h
[wimlib] / src / encoding.c
index 7d260046c3a8f99588f9eb2dcfe6ac42e1a9fd8d..d4f4f3993c47fb1b65f97ac75cbee45d41dfce61 100644 (file)
  * along with wimlib; if not, see http://www.gnu.org/licenses/.
  */
 
-#include "wimlib_internal.h"
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include "wimlib.h"
+#include "wimlib/encoding.h"
+#include "wimlib/error.h"
+#include "wimlib/list.h"
+#include "wimlib/util.h"
 
 #include <errno.h>
 #include <iconv.h>
@@ -362,12 +370,14 @@ iconv_cleanup(struct iconv_list_head *head)
 }
 
 void
-iconv_global_cleanup()
+iconv_global_cleanup(void)
 {
        iconv_cleanup(&iconv_utf8_to_tstr);
        iconv_cleanup(&iconv_tstr_to_utf8);
 #if !TCHAR_IS_UTF16LE
        iconv_cleanup(&iconv_utf16le_to_tstr);
        iconv_cleanup(&iconv_tstr_to_utf16le);
+       iconv_cleanup(&iconv_utf16le_to_utf8);
+       iconv_cleanup(&iconv_utf8_to_utf16le);
 #endif
 }