diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 748f2fb663..df077ce6e5 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -76,7 +76,7 @@ using namespace std; namespace Checkpoints { void SetCheckpoint( const char *file, int line, const char *message ); -}; +} #define CHECKPOINT (Checkpoints::SetCheckpoint(__FILE__, __LINE__, NULL)) #define CHECKPOINT_M(m) (Checkpoints::SetCheckpoint(__FILE__, __LINE__, m)) @@ -208,6 +208,11 @@ inline float roundf( float f ) CONST_FUNCTION; float roundf( float f ) { if( f < 0.0f ) return truncf( f-0.5f ); return truncf( f+0.5f ); } #endif +#ifdef NEED_LROUNDF +inline long int lroundf( float f ) CONST_FUNCTION; +long int lroundf( float f ) { return (long int)roundf( f ); } +#endif + #ifdef NEED_STRTOF inline float strtof( const char *s, char **se ) { return (float) strtod( s, se ); } #endif