possibly fix compilation under macOS?
This commit is contained in:
parent
6d0e9d80f9
commit
f03f6bdb8d
|
@ -40,6 +40,7 @@
|
||||||
#include "RtMidi.h"
|
#include "RtMidi.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
#ifdef TARGET_OS_IPHONE
|
||||||
#if (TARGET_OS_IPHONE == 1)
|
#if (TARGET_OS_IPHONE == 1)
|
||||||
|
|
||||||
#define AudioGetCurrentHostTime CAHostTimeBase::GetCurrentTime
|
#define AudioGetCurrentHostTime CAHostTimeBase::GetCurrentTime
|
||||||
|
@ -66,6 +67,7 @@
|
||||||
#define EndianS32_BtoN(n) n
|
#define EndianS32_BtoN(n) n
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Default for Windows is to add an identifier to the port names; this
|
// Default for Windows is to add an identifier to the port names; this
|
||||||
// flag can be defined (e.g. in your project file) to disable this behaviour.
|
// flag can be defined (e.g. in your project file) to disable this behaviour.
|
||||||
|
@ -814,7 +816,7 @@ MidiOutApi :: ~MidiOutApi( void )
|
||||||
// time values.
|
// time values.
|
||||||
|
|
||||||
// These are not available on iOS.
|
// These are not available on iOS.
|
||||||
#if (TARGET_OS_IPHONE == 0)
|
#ifdef TARGET_OS_IPHONE
|
||||||
#include <CoreAudio/HostTime.h>
|
#include <CoreAudio/HostTime.h>
|
||||||
#include <CoreServices/CoreServices.h>
|
#include <CoreServices/CoreServices.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue