remainder: Support for MSVC.
authorBruno Haible <bruno@clisp.org>
Sat, 25 Feb 2012 17:27:46 +0000 (18:27 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 25 Feb 2012 17:56:37 +0000 (18:56 +0100)
commit59cd972bd4e6d5a53e31ed175779f24c63d4b6c4
tree2f1bf4951bf4f09c1ae4c42e5f8d1346814a9ec4
parent157f0eaa5c453d7e1c1c172d1ef808e2ac2dd2d0
remainder: Support for MSVC.

* lib/math.in.h (remainder): New declaration.
* lib/remainder.c: New file.
* m4/remainder.m4: New file.
* modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
(Depends-on): Add math, round, fma.
(configure.ac): Use results of gl_FUNC_REMAINDER.
* m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
HAVE_DECL_REMAINDER.
* modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
HAVE_REMAINDER, HAVE_DECL_REMAINDER.
* tests/test-math-c++.cc: Check the declaration of remainder.
* doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
problems are fixed.
ChangeLog
doc/posix-functions/remainder.texi
lib/math.in.h
lib/remainder.c [new file with mode: 0644]
m4/math_h.m4
m4/remainder.m4 [new file with mode: 0644]
modules/math
modules/remainder
tests/test-math-c++.cc