+2016-12-17 Bruno Haible <bruno@clisp.org>
+
+ log10l: Avoid redefinition error on MSVC.
+ * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
+ may be defined as an inline function.
+
2016-12-17 Bruno Haible <bruno@clisp.org>
log10f: Avoid redefinition error on MSVC.
-# log10l.m4 serial 3
+# log10l.m4 serial 4
dnl Copyright (C) 2011-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
esac
else
HAVE_LOG10L=0
+ dnl If the function is declared but does not appear to exist, it may be
+ dnl defined as an inline function. In order to avoid a conflict, we have
+ dnl to define rpl_log10l, not log10l.
+ AC_CHECK_DECLS([log10l], [REPLACE_LOG10L=1], , [[#include <math.h>]])
fi
if test $HAVE_LOG10L = 0 || test $REPLACE_LOG10L = 1; then
if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then