]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
striconveh test: Fix a compilation failure when iconv is not available.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Jul 2019 06:45:16 +0000 (08:45 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Jul 2019 06:46:12 +0000 (08:46 +0200)
Reported by Tom G. Christensen <tgc@jupiterrise.com>.

* tests/test-striconveh.c (main): Move iconv_close invocations inside
HAVE_ICONV.

ChangeLog
tests/test-striconveh.c

index 01696987f69c26ff0a53ea82ae0d4b5c29fa0a83..1c9bd5f41367aa05dcf7383ab66cd9c7c2e54e08 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-07-09  Bruno Haible  <bruno@clisp.org>
+
+       striconveh test: Fix a compilation failure when iconv is not available.
+       Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+       * tests/test-striconveh.c (main): Move iconv_close invocations inside
+       HAVE_ICONV.
+
 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
 
        argmatch: adjust columns for help2man.
index ed41884e7852cd4ac11bbb5e58f5a0d5b34deebf..c2fb8bb40f6b7cc959baea02f860863460834464 100644 (file)
@@ -1106,8 +1106,6 @@ main ()
       free (result);
     }
 
-#endif
-
   /* -------------------------------- Done. -------------------------------- */
 
   if (cd_ascii_to_88591 != (iconv_t)(-1))
@@ -1116,5 +1114,7 @@ main ()
   if (cd_utf7_to_utf8 != (iconv_t)(-1))
     iconv_close (cd_utf7_to_utf8);
 
+#endif
+
   return 0;
 }