rint: Support for MSVC.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 16:42:07 +0000 (18:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 18:37:33 +0000 (20:37 +0200)
commit624e3c286e69a92e1610b28020c966c84f61b531
tree2489aefd7808608505ab94e34f976f8ce7aad22c
parent170dd03f1170f0760c2b95f0f2ee18ed64b10c1c
rint: Support for MSVC.

* lib/math.in.h (rint): New declaration.
* lib/rint.c: New file.
* m4/rint.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
* modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
* modules/rint (Description): Fix.
(Files): Add lib/rint.c, m4/rint.m4.
(Depends-on): Add math.
(configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
gl_MATH_MODULE_INDICATOR.
* tests/test-math-c++.cc: Check the declaration of rint.
* modules/math-c++-tests (Makefile.am): Link test-math-c++ against
$(RINT_LIBM). Needed on IRIX 6.5 with cc.
* doc/posix-functions/rint.texi: Mention the replacement provided by
the module.
ChangeLog
doc/posix-functions/rint.texi
lib/math.in.h
lib/rint.c [new file with mode: 0644]
m4/math_h.m4
m4/rint.m4 [new file with mode: 0644]
modules/math
modules/math-c++-tests
modules/rint
tests/test-math-c++.cc