diff options
Diffstat (limited to 'libs/ardour/ardour/lmath.h')
-rw-r--r-- | libs/ardour/ardour/lmath.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 |