use standard name "isfinite", not "finite"
This commit is contained in:
@@ -258,7 +258,7 @@ void PlayerOptions::FromString( const RString &sOptions, bool bWarnOnInvalid )
|
||||
else if( *s[0]=='*' )
|
||||
{
|
||||
sscanf( *s, "*%f", &speed );
|
||||
if( !finite(speed) )
|
||||
if( !isfinite(speed) )
|
||||
speed = 1.0f;
|
||||
}
|
||||
}
|
||||
@@ -280,7 +280,7 @@ void PlayerOptions::FromString( const RString &sOptions, bool bWarnOnInvalid )
|
||||
}
|
||||
else if( sscanf( sBit, "c%f", &level ) == 1 )
|
||||
{
|
||||
if( !finite(level) || level <= 0.0f )
|
||||
if( !isfinite(level) || level <= 0.0f )
|
||||
level = 200.0f; // Just pick some value.
|
||||
SET_FLOAT( fScrollBPM )
|
||||
SET_FLOAT( fTimeSpacing )
|
||||
|
||||
@@ -1478,7 +1478,7 @@ float StringToFloat( const RString &sString )
|
||||
{
|
||||
float ret = strtof( sString, NULL );
|
||||
|
||||
if( !finite(ret) )
|
||||
if( !isfinite(ret) )
|
||||
ret = 0.0f;
|
||||
return ret;
|
||||
}
|
||||
@@ -1907,7 +1907,7 @@ bool FromString( const RString &sValue, float &out )
|
||||
{
|
||||
const char *endptr = sValue.data() + sValue.size();
|
||||
out = strtof( sValue, (char **) &endptr );
|
||||
return endptr != sValue.data() && finite( out );
|
||||
return endptr != sValue.data() && isfinite( out );
|
||||
}
|
||||
|
||||
bool FromString( const RString &sValue, bool &out )
|
||||
|
||||
@@ -134,7 +134,7 @@ void StreamDisplay::SetPercent( float fPercent )
|
||||
DEBUG_ASSERT_M( 0, "fPercent is NaN" );
|
||||
fPercent = 1;
|
||||
}
|
||||
if( !finite(fPercent) )
|
||||
if( !isfinite(fPercent) )
|
||||
{
|
||||
DEBUG_ASSERT_M( 0, "fPercent is infinite" );
|
||||
fPercent = 1;
|
||||
|
||||
@@ -56,7 +56,7 @@ inline const T& min(const T &a, const T &b, P Pr) { return Pr(b, a)? b:a; }
|
||||
#define lstat stat
|
||||
#define fsync _commit
|
||||
#define isnan _isnan
|
||||
#define finite _finite
|
||||
#define isfinite _finite
|
||||
|
||||
/* mkdir is missing the mode arg */
|
||||
#define mkdir(p,m) mkdir(p)
|
||||
|
||||
Reference in New Issue
Block a user