'roundf()' wasn't introduced in MSVC until VS2013 - so for the time being, let's emulate it using 'floorf()'

This commit is contained in:
John Emmas 2016-08-19 10:19:32 +01:00
parent 5cc97f55f2
commit a0b117b948
3 changed files with 20 additions and 0 deletions

View file

@ -223,6 +223,24 @@ ssize_t ret;
return (ret);
}
//***************************************************************
//
// roundf()
//
// Emulates roundf() using floorf().
//
// Returns:
//
// On Success: The largest integer that is less than or
// equal to 'x'.
// On Failure: None
//
LIBPBD_API float PBD_APICALLTYPE
roundf(float x)
{
return (floorf(x));
}
//***************************************************************
//
// round()