summaryrefslogtreecommitdiff
path: root/msvc_extra_headers
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-01-10 11:56:24 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2015-01-10 11:56:24 +0000
commitf59810596648ae107c7858ecc6add4b3b9ff1ac7 (patch)
treeea72dfb0668c617a34225bab3d01b918827690d7 /msvc_extra_headers
parentca7965d7aa4b56bca74dd4137e03bdb581c738c8 (diff)
Add support for the C99 function 'log2()' which is newly needed by 'gtk2_ardour/tempo_lines.cc' (but isn't available from MSVC).
These changes are MSVC specific and shouldn't affect the other builds. (incidentally, libpbd already offers a function called 'fast_log2()'. Not sure if that could have been used instead...)
Diffstat (limited to 'msvc_extra_headers')
-rw-r--r--msvc_extra_headers/ardourext/misc.h.input4
1 files changed, 4 insertions, 0 deletions
diff --git a/msvc_extra_headers/ardourext/misc.h.input b/msvc_extra_headers/ardourext/misc.h.input
index 3ea4a806e9..5da7c41564 100644
--- a/msvc_extra_headers/ardourext/misc.h.input
+++ b/msvc_extra_headers/ardourext/misc.h.input
@@ -254,6 +254,10 @@ inline int64_t abs(int64_t val) throw()
#define rint(value) round(value)
#if !defined(LIBPBD_API) || defined(PBD_IS_IN_WIN_STATIC_LIB)
extern double round(double x);
+
+// log2().... MSVC doesn't offer the C99 function 'log2()'
+// so let's emulate it.
+extern double log2(double x);
#endif
#endif /* __ardour_msvc_extensions_h__ */