diff lib/math.in.h @ 16394:11a860d6f42d

sqrtl: Provide function definition on MSVC. * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as a function pointer. * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
author Bruno Haible <bruno@clisp.org>
date Sat, 25 Feb 2012 01:10:38 +0100
parents 43820240f265
children 68bd0cc2f6dd
line wrap: on
line diff
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -1004,6 +1004,7 @@
 
 #if @GNULIB_SQRTL@
 # if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@
+#  undef sqrtl
 _GL_FUNCDECL_SYS (sqrtl, long double, (long double x));
 # endif
 _GL_CXXALIAS_SYS (sqrtl, long double, (long double x));