mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
'roundf()' wasn't introduced in MSVC until VS2013 - so for the time being, let's emulate it using 'floorf()'
This commit is contained in:
parent
5cc97f55f2
commit
a0b117b948
3 changed files with 20 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue