summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/ardour/lmath.h13
-rw-r--r--libs/ardour/tempo.cc1
-rw-r--r--libs/ardour/ticker.cc1
3 files changed, 15 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
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index ff6553e820..2f29a0dabf 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -27,6 +27,7 @@
#include "pbd/xml++.h"
#include "evoral/types.hpp"
#include "ardour/debug.h"
+#include "ardour/lmath.h"
#include "ardour/tempo.h"
#include "i18n.h"
diff --git a/libs/ardour/ticker.cc b/libs/ardour/ticker.cc
index 15326af882..7a2fa32ad7 100644
--- a/libs/ardour/ticker.cc
+++ b/libs/ardour/ticker.cc
@@ -25,6 +25,7 @@
#include "ardour/audioengine.h"
#include "ardour/midi_buffer.h"
#include "ardour/midi_port.h"
+#include "ardour/lmath.h"
#include "ardour/ticker.h"
#include "ardour/session.h"
#include "ardour/tempo.h"