diff options
Diffstat (limited to 'libs/pbd/msvc/msvc_pbd.cc')
-rw-r--r-- | libs/pbd/msvc/msvc_pbd.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/pbd/msvc/msvc_pbd.cc b/libs/pbd/msvc/msvc_pbd.cc index 45137da0f3..f6efe9cdad 100644 --- a/libs/pbd/msvc/msvc_pbd.cc +++ b/libs/pbd/msvc/msvc_pbd.cc @@ -29,6 +29,7 @@ CreateHardLinkA( LPCSTR lpFileName, #include <algorithm> #include <string> #include <io.h> +#include <math.h> #include <fcntl.h> #include <errno.h> #include <stdlib.h> @@ -222,6 +223,24 @@ ssize_t ret; return (ret); } +//*************************************************************** +// +// round() +// +// Emulates round() using floor(). +// +// Returns: +// +// On Success: The largest integer that is less than or +// equal to 'x'. +// On Failure: None +// +PBD_API double PBD_APICALLTYPE +round(double x) +{ + return (floor(x)); +} + namespace PBD { //*************************************************************** |