summaryrefslogtreecommitdiff
path: root/tests/test-math-c++.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-03-10 19:54:08 +0100
committerBruno Haible <bruno@clisp.org>2012-03-11 02:40:31 +0100
commit5f70dcfc4f65198adbce63a01a17f18b1627beee (patch)
tree09a25fc838434cd2bbc1ff0371cf38c3a1044eec /tests/test-math-c++.cc
parentd2e57cace9c218973feb09b4c675056fa01cb7c2 (diff)
downloadgnulib-5f70dcfc4f65198adbce63a01a17f18b1627beee.tar.gz
log1p: Provide replacement for Minix and MSVC.
* lib/math.in.h (log1p): New declaration. * lib/log1p.c: New file. * m4/log1p.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P. * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P. * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4. (Depends-on): Add math, isnand, log, round. (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if HAVE_LOG1P is 0. * tests/test-math-c++.cc: Check the declaration of log1p. * doc/posix-functions/log1p.texi: Mention the replacement.
Diffstat (limited to 'tests/test-math-c++.cc')
-rw-r--r--tests/test-math-c++.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-math-c++.cc b/tests/test-math-c++.cc
index a5619b29a7..3b25714f4c 100644
--- a/tests/test-math-c++.cc
+++ b/tests/test-math-c++.cc
@@ -215,7 +215,9 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int));
SIGNATURE_CHECK (GNULIB_NAMESPACE::log10l, long double, (long double));
#endif
-//SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
+#if GNULIB_TEST_LOG1P
+SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
+#endif
//SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double));