* m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
* m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
* modules/wcpcpy (Depends-on): Add extensions.
* modules/wcpncpy (Depends-on): Likewise.
* doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
systems.
* doc/posix-functions/wcpncpy.texi: Likewise.
* doc/posix-functions/wcwidth.texi: Likewise.
+2011-04-01 Bruno Haible <bruno@clisp.org>
+
+ wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
+ * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
+ * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
+ * modules/wcpcpy (Depends-on): Add extensions.
+ * modules/wcpncpy (Depends-on): Likewise.
+ * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
+ systems.
+ * doc/posix-functions/wcpncpy.texi: Likewise.
+ * doc/posix-functions/wcwidth.texi: Likewise.
+
2011-03-31 Eric Blake <eblake@redhat.com>
nonblocking: fix mingw test failures
This function is missing on some platforms:
MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, AIX 4.3.2, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS.
+@item
+This function is not declared (without @code{-D_GNU_SOURCE}) on some platforms:
+glibc 2.13.
@end itemize
Portability problems not fixed by Gnulib:
This function is missing on some platforms:
MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, AIX 4.3.2, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS.
+@item
+This function is not declared (without @code{-D_GNU_SOURCE}) on some platforms:
+glibc 2.13.
@end itemize
Portability problems not fixed by Gnulib:
This function is missing on some platforms:
IRIX 5.3, Solaris 2.5.1, mingw, BeOS.
@item
+This function is not declared (without @code{-D_GNU_SOURCE}) on some platforms:
+glibc 2.8.
+@item
This function handles combining characters in UTF-8 locales incorrectly on some
platforms:
MacOS X 10.3.
-# wcpcpy.m4 serial 1
+# wcpcpy.m4 serial 2
dnl Copyright (C) 2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_WCPCPY],
[
AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
+
+ dnl Persuade glibc <wchar.h> to declare wcpcpy().
+ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+
AC_CHECK_FUNCS_ONCE([wcpcpy])
if test $ac_cv_func_wcpcpy = no; then
HAVE_WCPCPY=0
-# wcpncpy.m4 serial 1
+# wcpncpy.m4 serial 2
dnl Copyright (C) 2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_WCPNCPY],
[
AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
+
+ dnl Persuade glibc <wchar.h> to declare wcpncpy().
+ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+
AC_CHECK_FUNCS_ONCE([wcpncpy])
if test $ac_cv_func_wcpncpy = no; then
HAVE_WCPNCPY=0
m4/wcpcpy.m4
Depends-on:
+extensions
wchar
configure.ac:
m4/wcpncpy.m4
Depends-on:
+extensions
wchar
configure.ac: