diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-31 16:05:15 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-31 16:05:15 +0200 |
commit | 47110c983c48fb683a9f78b50923b06db5e341c8 (patch) | |
tree | fd3c31c337f66c38c5e941595e8c65d2fbcf4098 /libs/ardour/ardour/lmath.h | |
parent | e2271c84e7e759ea4ffc6e89c79ba61cfb84f5d5 (diff) |
fix OSX/PPC 10.4 long maths
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 |