diff lib/math.in.h @ 15881:8ff52f1384c6

New module 'asinf'. * lib/math.in.h (asinf): New declaration. * lib/asinf.c: New file. * m4/asinf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF. * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF. * modules/asinf: New file. * tests/test-math-c++.cc: Check the declaration of asinf. * doc/posix-functions/asinf.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Sat, 08 Oct 2011 23:29:33 +0200 (2011-10-08)
parents c0c190f3cccb
children c46fa8f14280
line wrap: on
line diff
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -123,6 +123,21 @@
 #endif
 
 
+#if @GNULIB_ASINF@
+# if !@HAVE_ASINF@
+#  undef asinf
+_GL_FUNCDECL_SYS (asinf, float, (float x));
+# endif
+_GL_CXXALIAS_SYS (asinf, float, (float x));
+_GL_CXXALIASWARN (asinf);
+#elif defined GNULIB_POSIXCHECK
+# undef asinf
+# if HAVE_RAW_DECL_ASINF
+_GL_WARN_ON_USE (asinf, "asinf is unportable - "
+                 "use gnulib module asinf for portability");
+# endif
+#endif
+
 #if @GNULIB_ASINL@
 # if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@
 _GL_FUNCDECL_SYS (asinl, long double, (long double x));