added def of tanf if needed as determined by configure

This commit is contained in:
Steve Checkoway
2003-04-24 04:14:25 +00:00
parent 7f66579123
commit 674f1c1704
+4 -1
View File
@@ -99,7 +99,6 @@ using namespace std;
#endif
/* Define a few functions if necessary */
/* You're right, that was the wrong way, how's this? */
#include <math.h>
#ifdef NEED_POWF
inline float powf (float x, float y) { return float(pow(double(x),double(y))); }
@@ -113,6 +112,10 @@ inline float sqrtf(float x) { return float(sqrt(double(x))); }
inline float sinf(float x) { return float(sin(double(x))); }
#endif
#ifdef NEED_TANF
inline float tanf(float x) { return float(tan(double(x))); }
#endif
#ifdef NEED_COSF
inline float cosf(float x) { return float(cos(double(x))); }
#endif