diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-08-04 15:36:07 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-08-04 15:36:07 +0100 |
commit | 490311bc081b12d328e6e02cac8170538e96fb2f (patch) | |
tree | 6a938f2619d21a1f669b855f41ea4e6a4fbfcd0b /libs/pbd/msvc | |
parent | 07d94b9b4868fad26c9e8ac2ae4901849a09b8ac (diff) |
'libs/ardour' - Main body of changes required for building with MSVC
Diffstat (limited to 'libs/pbd/msvc')
-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 { //*************************************************************** |