comparison 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
parents c0c190f3cccb
children c46fa8f14280
comparison
equal deleted inserted replaced
15880:e7ece082df33 15881:8ff52f1384c6
120 _GL_WARN_ON_USE (acosl, "acosl is unportable - " 120 _GL_WARN_ON_USE (acosl, "acosl is unportable - "
121 "use gnulib module mathl for portability"); 121 "use gnulib module mathl for portability");
122 # endif 122 # endif
123 #endif 123 #endif
124 124
125
126 #if @GNULIB_ASINF@
127 # if !@HAVE_ASINF@
128 # undef asinf
129 _GL_FUNCDECL_SYS (asinf, float, (float x));
130 # endif
131 _GL_CXXALIAS_SYS (asinf, float, (float x));
132 _GL_CXXALIASWARN (asinf);
133 #elif defined GNULIB_POSIXCHECK
134 # undef asinf
135 # if HAVE_RAW_DECL_ASINF
136 _GL_WARN_ON_USE (asinf, "asinf is unportable - "
137 "use gnulib module asinf for portability");
138 # endif
139 #endif
125 140
126 #if @GNULIB_ASINL@ 141 #if @GNULIB_ASINL@
127 # if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@ 142 # if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@
128 _GL_FUNCDECL_SYS (asinl, long double, (long double x)); 143 _GL_FUNCDECL_SYS (asinl, long double, (long double x));
129 # endif 144 # endif