diff options
author | Bruno Haible <bruno@clisp.org> | 2012-02-29 23:42:53 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-02-29 23:42:53 +0100 |
commit | a0dccde75e6a3b9c930e3577fae7a5bf9351ec09 (patch) | |
tree | cf07ebc2e9ae200885f4d1bea63f01d712b37d3b /tests/test-math-c++.cc | |
parent | 14ad442f598655b0dad323d32c22e8b27ad6fb5c (diff) | |
download | gnulib-a0dccde75e6a3b9c930e3577fae7a5bf9351ec09.tar.gz |
cbrt: Provide replacement on MSVC and Minix.
* lib/math.in.h (cbrt): New declaration.
* lib/cbrt.c: New file.
* m4/cbrt.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
* modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
* modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
(Depends-on): Add dependencies.
(configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
* tests/test-math-c++.cc: Check the declaration of cbrt.
* doc/posix-functions/cbrt.texi: Mention that the module provides a
replacement.
Diffstat (limited to 'tests/test-math-c++.cc')
-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 47dc173d5b..e79cb0b06e 100644 --- a/tests/test-math-c++.cc +++ b/tests/test-math-c++.cc @@ -68,7 +68,9 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2f, float, (float, float)); #endif //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2, double, (double, double)); -//SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double)); +#if GNULIB_TEST_CBRT +SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double)); +#endif #if GNULIB_TEST_CEILF SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float)); |