* m4/error_h.m4 (gl_ERROR_H): Conditionally set REPLACE_ERROR.
* lib/error.in.h (error): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
Resolve conflicts for functions introduced in Android API level 23.
+ * m4/error_h.m4 (gl_ERROR_H): Conditionally set REPLACE_ERROR.
+ * lib/error.in.h (error): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
* lib/wchar.in.h (wmempcpy): Consider REPLACE_WMEMPCPY.
* m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WMEMPCPY.
* modules/wchar (Makefile.am): Substitute REPLACE_WMEMPCPY.
_GL_CXXALIAS_SYS (error, void,
(int __status, int __errnum, const char *__format, ...));
#endif
+#if __GLIBC__ >= 2
_GL_CXXALIASWARN (error);
+#endif
/* Likewise. If FILENAME is non-NULL, include FILENAME:LINENO: in the
message. */
-# error_h.m4 serial 1
+# error_h.m4 serial 2
dnl Copyright (C) 1996-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,
[
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
+ REPLACE_ERROR=0
+
gl_CHECK_FUNCS_ANDROID([error], [[#include <error.h>]])
if test $ac_cv_func_error = yes; then
HAVE_ERROR=1
else
HAVE_ERROR=0
+ case "$gl_cv_onwards_func_error" in
+ future*) REPLACE_ERROR=1 ;;
+ esac
fi
- REPLACE_ERROR=0
dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer
dnl maintained in Autoconf and because it invokes AC_LIBOBJ.