copysign: Provide replacement.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 12:44:58 +0000 (14:44 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 12:44:58 +0000 (14:44 +0200)
commit5835ba726cff8bff6b8d83d407d72ab723dbcece
tree671e30119ab877ef381d36b9d74cb79a6e839eab
parent3ee187a6d4ba1005dc146e593b07e3fc8a4a4671
copysign: Provide replacement.

* lib/math.in.h (copysign): New declaration.
* lib/copysign.c: New file.
* m4/copysign.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
* modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
HAVE_COPYSIGN.
* modules/copysign (Description): Clarify.
(Files): Add lib/copysign.c, m4/copysign.m4.
(Depends-on): Add math, signbit.
(configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
gl_MATH_MODULE_INDICATOR.
* tests/test-math-c++.cc: Check the declaration of copysign.
* doc/posix-functions/copysign.texi: Mention the effects of the module
on Minix and MSVC.
ChangeLog
doc/posix-functions/copysign.texi
lib/copysign.c [new file with mode: 0644]
lib/math.in.h
m4/copysign.m4 [new file with mode: 0644]
m4/math_h.m4
modules/copysign
modules/math
tests/test-math-c++.cc