diff --git a/include/MidiIn.h b/include/MidiIn.h index 907efb9..ea60e2b 100644 --- a/include/MidiIn.h +++ b/include/MidiIn.h @@ -30,7 +30,15 @@ Midi parsing taken from openFrameworks addon ofxMidi by Theo Watson & Dan Wilcox #pragma once - +#if defined( CINDER_MSW ) +#define __WINDOWS_MM__ +#endif +#if defined( CINDER_MAC ) +#define __MACOSX_CORE__ +#endif +#if defined( CINDER_LINUX ) +#define __LINUX_ALSA__ +#endif #include #include #include @@ -46,6 +54,7 @@ Midi parsing taken from openFrameworks addon ofxMidi by Theo Watson & Dan Wilcox */ + namespace cinder { namespace midi { void MidiInCallback( double deltatime, std::vector< unsigned char > *message, void *userData ); diff --git a/include/MidiOut.h b/include/MidiOut.h index f992823..590d193 100644 --- a/include/MidiOut.h +++ b/include/MidiOut.h @@ -25,7 +25,15 @@ Midi parsing taken from openFrameworks addon ofxMidi by Theo Watson & Dan Wilcox */ #pragma once - +#if defined( CINDER_MSW ) +#define __WINDOWS_MM__ +#endif +#if defined( CINDER_MAC ) +#define __MACOSX_CORE__ +#endif +#if defined( CINDER_LINUX ) +#define __LINUX_ALSA__ +#endif //#include "MidiHeaders.h" #include "cinder/app/App.h" #include "RtMidi.h"