]> Savannah Git Hosting - gnulib.git/commitdiff
iconv_open: Fix module description.
authorNoah Misch <noah@leadboat.com>
Sun, 3 Jan 2021 18:17:52 +0000 (19:17 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 3 Jan 2021 19:47:42 +0000 (20:47 +0100)
* modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.

ChangeLog
modules/iconv_open

index 82e4a10155718cc8cd410d9ada9703687ba1fd1d..78fa7be9e1b5884c77c57b754de305e18fae51e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-03  Noah Misch  <noah@leadboat.com>
+
+       iconv_open: Fix module description.
+       * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
+
 2021-01-03  Bruno Haible  <bruno@clisp.org>
 
        stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
index 3486901e502689b623a76eb8171223c8dfd289af..dba45920add3ca3ca354d8c7047180ad60d1639f 100644 (file)
@@ -58,7 +58,9 @@ MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h ico
 EXTRA_DIST           += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h iconv_open-zos.h
 
 Include:
-<iconv.h>
+#if HAVE_ICONV
+# include <iconv.h>
+#endif
 
 Link:
 $(LTLIBICONV) when linking with libtool, $(LIBICONV) otherwise