diff options
author | Bruno Haible <bruno@clisp.org> | 2012-04-01 13:19:41 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-04-01 16:37:08 +0200 |
commit | 54be6af60f46a82b2d9051cd939169cd288ed52c (patch) | |
tree | e975c8674643c7c7f8ef8d7e7939b7d2ac419c2d /tests | |
parent | 1cf571bb5ce42ffa1a95361d32414119a7ac6eba (diff) | |
download | gnulib-54be6af60f46a82b2d9051cd939169cd288ed52c.tar.gz |
log10: Work around OSF/1 5.1 bug.
* lib/math.in.h (log10): New declaration.
* lib/log10.c: New file.
* m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
(gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
* m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
* modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
* modules/log10 (Files): Add lib/log10.c.
(Depends-on): Add math.
(configure.ac): If REPLACE_LOG10 is 1, compile an override.
* tests/test-math-c++.cc: Check the declaration of log10.
* doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-math-c++.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-math-c++.cc b/tests/test-math-c++.cc index 9caa9511e6..b6df6595c4 100644 --- a/tests/test-math-c++.cc +++ b/tests/test-math-c++.cc @@ -210,7 +210,9 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int)); //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double)); -//SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double)); +#if GNULIB_TEST_LOG10 +SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double)); +#endif #if GNULIB_TEST_LOG10L SIGNATURE_CHECK (GNULIB_NAMESPACE::log10l, long double, (long double)); #endif |