Fix darwin math problems

This commit is contained in:
William Reading
2003-07-04 18:03:20 +00:00
parent 307f9eae7a
commit d310d0e252
9 changed files with 44 additions and 8 deletions
+4 -4
View File
@@ -15,13 +15,13 @@ PKG_NAME="stepmania"
# Actually, there's a chance we'll work with later versions, too, but it's
# not worth bending over backward to try to detect it right now.
ACLOCAL=aclocal-1.7
AUTOHEADER=autoheader
AUTOMAKE=automake-1.7
ACLOCAL=/sw/bin/aclocal-1.7
AUTOHEADER=/sw/bin/autoheader
AUTOMAKE=/sw/bin/automake-1.7
ACLOCAL_OPTIONS="-I autoconf/m4/"
AUTOMAKE_OPTIONS=-a
AUTOCONF=autoconf
AUTOCONF=/sw/bin/autoconf
(test -f $srcdir/configure.ac \
&& test -d $srcdir/src) || {
+1 -1
View File
@@ -20,7 +20,7 @@
#include "NoteDisplay.h"
#include "song.h"
#include <math.h>
#include "RageMath.h"
float g_fExpandSeconds = 0;
+1 -1
View File
@@ -18,7 +18,7 @@
#include "ThemeManager.h"
#include "Notes.h"
#include "RageDisplay.h"
#include "RageMath.h"
#include <math.h>
+1
View File
@@ -16,6 +16,7 @@
#include "RageTimer.h"
#include "GameState.h"
#include <math.h>
#include "RageMath.h"
#include "ThemeManager.h"
+1
View File
@@ -22,6 +22,7 @@
#include "RageLog.h"
#include "GameConstantsAndTypes.h"
#include "GameState.h"
#include "RageMath.h"
#include <math.h>
#include "ThemeManager.h"
#include "song.h"
+1
View File
@@ -21,6 +21,7 @@
#include "RageException.h"
#include "RageTimer.h"
#include "RageLog.h"
#include "RageMath.h"
#include <math.h>
#include "ThemeManager.h"
#include "NoteFieldPositioning.h"
+33
View File
@@ -46,3 +46,36 @@ RageMatrix RageLookAt(
float upx, float upy, float upz );
#endif
// Fix for platforms that don't have these in math.h
#ifndef HAVE_POWF
#define powf(x,y) (float)pow((float)(x), (float)(y))
#endif
#ifndef HAVE_SQRTF
#define sqrtf(x) (float)sqrt((float)(x))
#endif
#ifndef HAVE_COSF
#define cosf(x) (float)cos((float)(x))
#endif
#ifndef HAVE_SINF
#define sinf(x) (float)sin((float)(x))
#endif
#ifndef HAVE_TANF
#define tanf(x) (float)tan((float)(x))
#endif
#ifndef HAVE_ACOSF
#define acosf(x) (float)acosh((float)(x))
#endif
#ifndef HAVE_ASINF
#define asinf(x) (float)acosh((float)(x))
#endif
#ifndef HAVE_ATANF
#define atanf(x) (float)atanh((float)(x))
#endif
+1 -1
View File
@@ -9,7 +9,7 @@
Chris Danford
-----------------------------------------------------------------------------
*/
#include "RageMath.h"
#include "RageUtil.h"
#include "RageUtil_FileDB.h"
#include "RageTimer.h"
+1 -1
View File
@@ -14,7 +14,7 @@
#define STDAFX_H
#ifdef HAVE_CONFIG_H
#include <config.h>
//#include <config.h>
#endif
#if _MSC_VER >= 1000