summaryrefslogtreecommitdiff
path: root/msvc_extra_headers
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 /msvc_extra_headers
parent5cc97f55f20d7f98cfa6d927507235dad84bfdf3 (diff)
'roundf()' wasn't introduced in MSVC until VS2013 - so for the time being, let's emulate it using 'floorf()'
Diffstat (limited to 'msvc_extra_headers')
-rw-r--r--msvc_extra_headers/ardourext/misc.h.input1
1 files changed, 1 insertions, 0 deletions
diff --git a/msvc_extra_headers/ardourext/misc.h.input b/msvc_extra_headers/ardourext/misc.h.input
index 11ba638494..6b6533b510 100644
--- a/msvc_extra_headers/ardourext/misc.h.input
+++ b/msvc_extra_headers/ardourext/misc.h.input
@@ -253,6 +253,7 @@ inline int64_t abs(int64_t val) throw()
#if !defined(LIBPBD_API) || defined(PBD_IS_IN_WIN_STATIC_LIB)
extern double round(double x);
+extern float roundf(float x);
// Emulate some C99 math functions which MSVC itself didn't
// implement until later in life.