summaryrefslogtreecommitdiff
path: root/Clock.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-23 19:05:20 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-24 23:10:57 -0500
commit45e936174e39637c09cd10c0a5c6f8752ee2d709 (patch)
tree1ac68c1e8f13063578f75c70263f2caa84efceab /Clock.c
parent27e10658010d314b40dfc9403a92864b26a9d576 (diff)
Use AM_ICONV
AC_SEARCH_LIBS does not detect GNU libiconv because its symbols are exported in the "libiconv" namespace instead of "iconv". The AM_ICONV macro correctly detects both glibc and GNU libiconv, defines HAVE_ICONV, ICONV_CONST, and LIBICONV depending on the system. The config.rpath file is required by this macro. This adds a dependency on the aclocal macros from gettext (gettext-devel in some distros) when building from git, but not when building from a tarball. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'Clock.c')
-rw-r--r--Clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Clock.c b/Clock.c
index 70eb0a1..fb92983 100644
--- a/Clock.c
+++ b/Clock.c
@@ -2214,7 +2214,7 @@ clock_to_utf8(const char *str, int in_len)
char *buf;
size_t buf_size;
size_t ileft, oleft;
- const char *inptr;
+ ICONV_CONST char *inptr;
char *outptr;
size_t ret;
const char *code_set = nl_langinfo(CODESET);