From: Bruno Haible Date: Sat, 23 Aug 2003 16:14:27 +0000 (+0000) Subject: Define HAVE_WCSLEN on Windows and VMS. X-Git-Tag: v0.13~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=858af53a234d9c149df904c53c32bc0a0c5d7fb5;p=thirdparty%2Fgettext.git Define HAVE_WCSLEN on Windows and VMS. --- diff --git a/gettext-runtime/libasprintf/ChangeLog b/gettext-runtime/libasprintf/ChangeLog index e44a1e521..de9a64dac 100644 --- a/gettext-runtime/libasprintf/ChangeLog +++ b/gettext-runtime/libasprintf/ChangeLog @@ -3,6 +3,8 @@ * vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1. (VASNPRINTF): Use it instead of wcslen. * configure.ac: Also check for wcslen. + * Makefile.am (config.h_vms): Set HAVE_WCSLEN. + (config.h.msvc): Likewise. 2003-06-20 Bruno Haible diff --git a/gettext-runtime/libasprintf/Makefile.am b/gettext-runtime/libasprintf/Makefile.am index 16817693d..891904756 100644 --- a/gettext-runtime/libasprintf/Makefile.am +++ b/gettext-runtime/libasprintf/Makefile.am @@ -198,6 +198,7 @@ config.h_vms: config.h.in -e 's/#undef HAVE_SYS_TYPES_H$$/#define HAVE_SYS_TYPES_H 1/' \ -e 's/#undef HAVE_UNISTD_H$$/#define HAVE_UNISTD_H 1/' \ -e 's/#undef HAVE_WCHAR_T$$/#define HAVE_WCHAR_T 1/' \ + -e 's/#undef HAVE_WCSLEN$$/#define HAVE_WCSLEN 1/' \ -e 's/#undef HAVE_WINT_T$$/#define HAVE_WINT_T 1/' \ -e 's/#undef STDC_HEADERS$$/#define STDC_HEADERS 1/' \ < $(srcdir)/config.h.in; echo; echo '#define alloca __ALLOCA') > $@ @@ -215,6 +216,7 @@ config.h.msvc: config.h.in -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \ -e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \ -e 's/#undef HAVE_WCHAR_T$$/#define HAVE_WCHAR_T 1/' \ + -e 's/#undef HAVE_WCSLEN$$/#define HAVE_WCSLEN 1/' \ -e 's/#undef HAVE_WINT_T$$/#define HAVE_WINT_T 1/' \ < $(srcdir)/config.h.in; echo; echo '#define snprintf _snprintf') > $@