From ef89561fa9f348bff95e3a264b4d42f7a6b8c83f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 23 Apr 2003 04:44:12 +0000 Subject: [PATCH] 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. --- stepmania/src/global.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 2e65c2bdb3..4fb6f1e5f2 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -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 -#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