From ace71ae2d2eac718bc5be97be046145bc26b3682 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 20 Apr 2003 12:51:39 +0000 Subject: [PATCH] Added def for powf, sinf, cosf, acosf, sqrtf, needed for darwin's incomplete libc --- stepmania/src/global.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index fe96b29cd4..68f422d70f 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -123,6 +123,26 @@ inline const T& min(const T &a, const T &b, P Pr) #define strnicmp strncasecmp #endif +/* Define a few functions if necessary */ +#ifndef powf +#define powf (float)pow +#endif + +#ifndef sqrtf +#define sqrtf (float)sqrt +#endif + +#ifndef sinf +#define sinf (float)sin +#endif + +#ifndef cosf +#define cosf (float)cos +#endif + +#ifndef acosf +#define acosf (float)acos +#endif /* Don't include our own headers here, since they tend to change * often. */