Fix compilation on everything else again. Not all archs use autoconf, and

we don't want to have to maintain a huge list of HAVE_ defines; instead we
want to maintain small lists of NEED_ defines.
This commit is contained in:
Glenn Maynard
2003-04-23 04:44:12 +00:00
parent 3a955347dd
commit ef89561fa9
+10 -10
View File
@@ -101,24 +101,24 @@ using namespace std;
/* Define a few functions if necessary */
/* You're right, that was the wrong way, how's this? */
#include <math.h>
#ifndef HAVE_POWF
inline float powf (float x, float y){ return float(pow(double(x),double(y))); }
#ifdef NEED_POWF
inline float powf (float x, float y) { return float(pow(double(x),double(y))); }
#endif
#ifndef HAVE_SQRTF
inline float sqrtf (float x) { return float(sqrt(double(x))); }
#ifdef NEED_SQRTF
inline float sqrtf(float x) { return float(sqrt(double(x))); }
#endif
#ifndef HAVE_SINF
inline float sinf (float x) { return float(sin(double(x))); }
#ifdef NEED_SINF
inline float sinf(float x) { return float(sin(double(x))); }
#endif
#ifndef HAVE_COSF
inline float cosf (float x) { return float(cos(double(x))); }
#ifdef NEED_COSF
inline float cosf(float x) { return float(cos(double(x))); }
#endif
#ifndef HAVE_ACOSF
inline float acosf (float x) { return float(acos(double(x))); }
#ifdef NEED_ACOSF
inline float acosf(float x) { return float(acos(double(x))); }
#endif