fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / ardour / lmath.h
1 #include "math.h"
2
3 #if defined __DARWIN_NO_LONG_LONG && defined MAC_OS_X_VERSION_MIN_REQUIRED && MAC_OS_X_VERSION_MIN_REQUIRED <= 1040
4 static inline long long int llrint (double x)
5 {
6         return (long long int)rint (x);
7 }
8
9 static inline long long int llrintf (float x)
10 {
11         return (long long int)rintf (x);
12 }
13 #endif