]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 21.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 11:36:45 +0000 (12:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:56:47 +0000 (15:56 +0100)
* m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Conditionally set
REPLACE_MBSNRTOWCS.
* lib/wchar.in.h (mbsnrtowcs): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/wchar.in.h
m4/mbsnrtowcs.m4

index 5479a8685e84a8512a4b150da4ca2d491cc439a1..f8a57d2d70c12f9dd922d33d9578637744c9cc72 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 
        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
index 09c9185f623f2af575a63de5d3c0f1b4f85ba480..354709db522a345d95e5f3f725cc929e8e5f3551 100644 (file)
@@ -441,7 +441,9 @@ _GL_CXXALIAS_SYS (mbsnrtowcs, size_t,
                    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
index 1b398c7ca73948c8a6a2e3936b14129c5bbfd3d6..34dcf30e63fd1f1125b233668b428601b08ea257 100644 (file)
@@ -1,4 +1,4 @@
-# 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,
@@ -17,6 +17,9 @@ AC_DEFUN([gl_FUNC_MBSNRTOWCS],
   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