summaryrefslogtreecommitdiff
path: root/libs/pbd/msvc/msvc_pbd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd/msvc/msvc_pbd.cc')
-rw-r--r--libs/pbd/msvc/msvc_pbd.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/pbd/msvc/msvc_pbd.cc b/libs/pbd/msvc/msvc_pbd.cc
index f49ac5393c..68596e3463 100644
--- a/libs/pbd/msvc/msvc_pbd.cc
+++ b/libs/pbd/msvc/msvc_pbd.cc
@@ -225,6 +225,24 @@ ssize_t 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()
//
// Emulates round() using floor().