Changes for GCC 4.7 compatibility [Belegdol]

This commit is contained in:
R. Belmont 2012-01-21 20:39:52 +00:00
parent 08262d3cd2
commit 87c3d68343
2 changed files with 19 additions and 18 deletions

View File

@ -70,6 +70,24 @@
// TYPE DEFINITIONS
//**************************************************************************
//-------------------------------------------------
// global helpers for float base types
//-------------------------------------------------
inline float poly_floor(float x) { return floorf(x); }
inline float poly_abs(float x) { return fabsf(x); }
inline float poly_recip(float x) { return 1.0f / x; }
//-------------------------------------------------
// global helpers for double base types
//-------------------------------------------------
inline double poly_floor(double x) { return floor(x); }
inline double poly_abs(double x) { return fabs(x); }
inline double poly_recip(double x) { return 1.0 / x; }
// poly_manager is a template class
template<typename _BaseType, class _ObjectData, int _MaxParams, int _MaxPolys>
class poly_manager
@ -253,24 +271,6 @@ private:
};
//-------------------------------------------------
// global helpers for float base types
//-------------------------------------------------
inline float poly_floor(float x) { return floorf(x); }
inline float poly_abs(float x) { return fabsf(x); }
inline float poly_recip(float x) { return 1.0f / x; }
//-------------------------------------------------
// global helpers for double base types
//-------------------------------------------------
inline double poly_floor(double x) { return floor(x); }
inline double poly_abs(double x) { return fabs(x); }
inline double poly_recip(double x) { return 1.0 / x; }
//-------------------------------------------------
// poly_manager - constructor
//-------------------------------------------------

View File

@ -23,6 +23,7 @@
#endif
#include <errno.h>
#define NO_MEM_TRACKING
#include "emu.h"
#include "sdlfile.h"