fix OSX/PPC 10.4 long maths

This commit is contained in:
Robin Gareus
2015-03-31 16:05:15 +02:00
parent e2271c84e7
commit 47110c983c
7 changed files with 19 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
#include "gtkmm2ext/rgb_macros.h"
#include "ardour/profile.h"
#include "ardour/lmath.h"
#include "ardour/session.h"
#include "ardour/slave.h"
#include "ardour/tempo.h"

View File

@@ -68,6 +68,7 @@
#include "ardour/audio_track.h"
#include "ardour/audioengine.h"
#include "ardour/audioregion.h"
#include "ardour/lmath.h"
#include "ardour/location.h"
#include "ardour/profile.h"
#include "ardour/route_group.h"

View File

@@ -17,6 +17,7 @@
*/
#include "ardour/lmath.h"
#include "selection_memento.h"
#include "editing.h"
#include "public_editor.h"

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -29,6 +29,7 @@
#include "ardour/types.h"
#include "ardour/dB.h"
#include "ardour/lmath.h"
#include "ardour/audioregion.h"
#include "canvas/wave_view.h"