summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2016-08-19 10:19:32 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2016-08-19 14:11:00 +0100
commita0b117b9481a1a3091a6d0c1fe0deacf17e20529 (patch)
treeaa123cd77e41c0198a148047ef5cfaba01a8ef30 /libs/pbd/pbd
parent5cc97f55f20d7f98cfa6d927507235dad84bfdf3 (diff)
'roundf()' wasn't introduced in MSVC until VS2013 - so for the time being, let's emulate it using 'floorf()'
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/msvc_pbd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/pbd/pbd/msvc_pbd.h b/libs/pbd/pbd/msvc_pbd.h
index 5a6b550242..1a017fcb8a 100644
--- a/libs/pbd/pbd/msvc_pbd.h
+++ b/libs/pbd/pbd/msvc_pbd.h
@@ -230,6 +230,7 @@ LIBPBD_API int __cdecl gettimeofday(struct timeval *__restrict tv, __
LIBPBD_API ssize_t PBD_APICALLTYPE pread(int handle, void *buf, size_t nbytes, off_t offset);
LIBPBD_API ssize_t PBD_APICALLTYPE pwrite(int handle, const void *buf, size_t nbytes, off_t offset);
LIBPBD_API int PBD_APICALLTYPE poll(struct pollfd *fds, nfds_t nfds, int timeout);
+LIBPBD_API float PBD_APICALLTYPE roundf(float x);
LIBPBD_API double PBD_APICALLTYPE round(double x);
LIBPBD_API double PBD_APICALLTYPE trunc(double x);