* m4/log2.m4 (gl_FUNC_LOG2): Conditionally set REPLACE_LOG2.
* m4/log2f.m4 (gl_FUNC_LOG2F): Conditionally set REPLACE_LOG2F.
* m4/log2l.m4 (gl_FUNC_LOG2L): Conditionally set REPLACE_LOG2L.
* lib/math.in.h (log2f): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
Resolve conflicts for functions introduced in Android API level 18.
+ * m4/log2.m4 (gl_FUNC_LOG2): Conditionally set REPLACE_LOG2.
+ * m4/log2f.m4 (gl_FUNC_LOG2F): Conditionally set REPLACE_LOG2F.
+ * m4/log2l.m4 (gl_FUNC_LOG2L): Conditionally set REPLACE_LOG2L.
+ * lib/math.in.h (log2f): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Conditionally set REPLACE_GETDELIM.
* m4/getline.m4 (gl_FUNC_GETLINE): Conditionally set REPLACE_GETLINE.
* lib/stdio.in.h (getdelim, getline): Disable _GL_CXXALIASWARN
# endif
_GL_CXXALIAS_SYS (log2f, float, (float x));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (log2f);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef log2f
# if HAVE_RAW_DECL_LOG2F
-# log2.m4 serial 11
+# log2.m4 serial 12
dnl Copyright (C) 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,
else
HAVE_LOG2=0
HAVE_DECL_LOG2=0
+ case "$gl_cv_onwards_func_log2" in
+ future*) REPLACE_LOG2=1 ;;
+ esac
fi
if test $HAVE_LOG2 = 0 || test $REPLACE_LOG2 = 1; then
dnl Find libraries needed to link lib/log2.c.
-# log2f.m4 serial 11
+# log2f.m4 serial 12
dnl Copyright (C) 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,
else
HAVE_LOG2F=0
HAVE_DECL_LOG2F=0
+ case "$gl_cv_onwards_func_log2f" in
+ future*) REPLACE_LOG2F=1 ;;
+ esac
fi
if test $HAVE_LOG2F = 0 || test $REPLACE_LOG2F = 1; then
dnl Find libraries needed to link lib/log2f.c.
-# log2l.m4 serial 4
+# log2l.m4 serial 5
dnl Copyright (C) 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,
else
HAVE_LOG2L=0
HAVE_DECL_LOG2L=0
+ case "$gl_cv_onwards_func_log2l" in
+ future*) REPLACE_LOG2L=1 ;;
+ esac
fi
if test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; then
dnl Find libraries needed to link lib/log2l.c.