From f59810596648ae107c7858ecc6add4b3b9ff1ac7 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sat, 10 Jan 2015 11:56:24 +0000 Subject: 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...) --- msvc_extra_headers/ardourext/misc.h.input | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'msvc_extra_headers') 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__ */ -- cgit v1.2.3