Resolve conflicts for functions introduced in Android API level 21.
+ * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Conditionally set
+ REPLACE_MBSNRTOWCS.
+ * lib/wchar.in.h (mbsnrtowcs): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
* m4/execvpe.m4 (gl_FUNC_EXECVPE): Conditionally set REPLACE_EXECVPE.
* m4/linkat.m4 (gl_FUNC_LINKAT): Conditionally set REPLACE_LINKAT.
* m4/readlinkat.m4 (gl_FUNC_READLINKAT): Conditionally set
const char **restrict srcp, size_t srclen, size_t len,
mbstate_t *restrict ps));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (mbsnrtowcs);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef mbsnrtowcs
# if HAVE_RAW_DECL_MBSNRTOWCS
-# mbsnrtowcs.m4 serial 7
+# mbsnrtowcs.m4 serial 8
dnl Copyright (C) 2008, 2010-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_CHECK_FUNCS_ANDROID([mbsnrtowcs], [[#include <wchar.h>]])
if test $ac_cv_func_mbsnrtowcs = no; then
HAVE_MBSNRTOWCS=0
+ case "$gl_cv_onwards_func_mbsnrtowcs" in
+ future*) REPLACE_MBSNRTOWCS=1 ;;
+ esac
else
if test $REPLACE_MBSTATE_T = 1; then
REPLACE_MBSNRTOWCS=1