From 674f1c1704c17183389f910a86e89eca1cf4e09b Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 24 Apr 2003 04:14:25 +0000 Subject: [PATCH] added def of tanf if needed as determined by configure --- stepmania/src/global.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 4fb6f1e5f2..a2396e81e9 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -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 #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