diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9623194beb49..ea450d66a344 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2001-06-24 David Edelsohn + + * libmath/stubs.c (sqrtf): Define. + (tanf): Correct typo. + 2001-06-22 Benjamin Kosnik * include/bits/stl_iterator.h (reverse_iterator): Inherit from diff --git a/libstdc++-v3/libmath/stubs.c b/libstdc++-v3/libmath/stubs.c index f25cb60fa69b..fe7b57e65f2a 100644 --- a/libstdc++-v3/libmath/stubs.c +++ b/libstdc++-v3/libmath/stubs.c @@ -94,11 +94,18 @@ sinhf(float x) } #endif +#ifndef _GLIBCPP_HAVE_SQRTF +float +sqrtf(float x) +{ + return (float) sqrt(x); +} + #ifndef _GLIBCPP_HAVE_TANF float tanf(float x) { - return (float) tanf(x); + return (float) tan(x); } #endif