cbrt: Provide replacement on MSVC and Minix.
authorBruno Haible <bruno@clisp.org>
Wed, 29 Feb 2012 22:42:53 +0000 (23:42 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 29 Feb 2012 22:42:53 +0000 (23:42 +0100)
commita0dccde75e6a3b9c930e3577fae7a5bf9351ec09
treecf07ebc2e9ae200885f4d1bea63f01d712b37d3b
parent14ad442f598655b0dad323d32c22e8b27ad6fb5c
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.
ChangeLog
doc/posix-functions/cbrt.texi
lib/cbrt.c [new file with mode: 0644]
lib/math.in.h
m4/cbrt.m4 [new file with mode: 0644]
m4/math_h.m4
modules/cbrt
modules/math
tests/test-math-c++.cc