From 47110c983c48fb683a9f78b50923b06db5e341c8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 31 Mar 2015 16:05:15 +0200 Subject: fix OSX/PPC 10.4 long maths --- libs/ardour/ardour/lmath.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libs/ardour/ardour/lmath.h (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/lmath.h b/libs/ardour/ardour/lmath.h new file mode 100644 index 0000000000..bac1457cde --- /dev/null +++ b/libs/ardour/ardour/lmath.h @@ -0,0 +1,13 @@ +#include "math.h" + +#if defined __DARWIN_NO_LONG_LONG && defined MAC_OS_X_VERSION_MIN_REQUIRED && MAC_OS_X_VERSION_MIN_REQUIRED <= 1040 +static inline long long int llrint ( double x ) +{ + return (long long int)rint( x ); +} + +static inline long long int llrintf (float x) +{ + return (long long int)rintf ( x ); +} +#endif -- cgit v1.2.3