mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +03:00
Changes for GCC 4.7 compatibility [Belegdol]
This commit is contained in:
parent
08262d3cd2
commit
87c3d68343
@ -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
|
||||
//-------------------------------------------------
|
||||
|
@ -23,6 +23,7 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#define NO_MEM_TRACKING
|
||||
#include "emu.h"
|
||||
#include "sdlfile.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user