* m4/dprintf.m4 (gl_REPLACE_DPRINTF): Conditionally set REPLACE_DPRINTF.
* lib/stdio.in.h (dprintf): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
Resolve conflicts for functions introduced in Android API level 21.
+ * m4/dprintf.m4 (gl_REPLACE_DPRINTF): Conditionally set REPLACE_DPRINTF.
+ * lib/stdio.in.h (dprintf): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
* m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Conditionally set
REPLACE_DUPLOCALE.
* m4/localename.m4 (gl_LOCALENAME): Conditionally set REPLACE_NEWLOCALE,
# endif
_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (dprintf);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef dprintf
# if HAVE_RAW_DECL_DPRINTF
-# dprintf.m4 serial 2
+# dprintf.m4 serial 3
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,
[
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
AC_LIBOBJ([dprintf])
- if test $ac_cv_func_dprintf = yes; then
+ if test $ac_cv_func_dprintf = yes \
+ || case "$gl_cv_onwards_func_dprintf" in \
+ future*) true ;; \
+ *) false ;; \
+ esac; then
REPLACE_DPRINTF=1
fi
gl_PREREQ_DPRINTF