]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 26.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 13:20:58 +0000 (14:20 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:57:13 +0000 (15:57 +0100)
* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Conditionally set
REPLACE_NL_LANGINFO.
* lib/langinfo.in.h (nl_langinfo): Disable _GL_CXXALIASWARN invocation
on non-glibc systems.

ChangeLog
lib/langinfo.in.h
m4/nl_langinfo.m4

index 39709e91cd17654f1066b8f98ea0aa16d1a8e617..71c23426e6dd1702b1e06b534a0065a49b1071cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 
        Resolve conflicts for functions introduced in Android API level 26.
 
+       * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Conditionally set
+       REPLACE_NL_LANGINFO.
+       * lib/langinfo.in.h (nl_langinfo): Disable _GL_CXXALIASWARN invocation
+       on non-glibc systems.
+
        * lib/stdlib.in.h (getsubopt): Consider REPLACE_GETSUBOPT. Disable
        _GL_CXXALIASWARN invocation on non-glibc systems.
        * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_GETSUBOPT.
index c7555a6a59b09f5d279a19f637ee393fb50d2874..82e1e3cb1b21d172fb330500414138ff139a59a0 100644 (file)
@@ -208,7 +208,9 @@ _GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item));
 #  endif
 _GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (nl_langinfo);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef nl_langinfo
 # if HAVE_RAW_DECL_NL_LANGINFO
index c7146ace03091fe2addf119ee38ac4461bb8b2e4..7648d52467e2a1c9743fa3039dfe915099ae8675 100644 (file)
@@ -1,4 +1,4 @@
-# nl_langinfo.m4 serial 10
+# nl_langinfo.m4 serial 11
 dnl Copyright (C) 2009-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,
@@ -60,6 +60,9 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
     fi
   else
     HAVE_NL_LANGINFO=0
+    case "$gl_cv_onwards_func_nl_langinfo" in
+      future*) REPLACE_NL_LANGINFO=1 ;;
+    esac
   fi
   if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
     LIB_NL_LANGINFO="$SETLOCALE_NULL_LIB"