From cd91fa0046e52e34d583b29e49c2452a935a9ae5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 23 Nov 2014 23:56:39 +0100 Subject: hotfix windows-compilation (unfinished bfe49540b9) ..at least it compiles and starts. Mackie support etc is probably still broken. --- libs/ardour/ardour/async_midi_port.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ardour/ardour/async_midi_port.h') diff --git a/libs/ardour/ardour/async_midi_port.h b/libs/ardour/ardour/async_midi_port.h index 373d6b7668..d822081bd3 100644 --- a/libs/ardour/ardour/async_midi_port.h +++ b/libs/ardour/ardour/async_midi_port.h @@ -62,13 +62,19 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port { /* clears async request communication channel */ void clear () { +#ifndef PLATFORM_WINDOWS return xthread.drain (); +#endif } /* Not selectable; use ios() */ int selectable() const { return -1; } Glib::RefPtr ios() { +#ifndef PLATFORM_WINDOWS return xthread.ios(); +#else + return Glib::RefPtr(0); +#endif } void set_timer (boost::function&); @@ -84,7 +90,9 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port { RingBuffer< Evoral::Event > output_fifo; Evoral::EventRingBuffer input_fifo; Glib::Threads::Mutex output_fifo_lock; +#ifndef PLATFORM_WINDOWS CrossThreadChannel xthread; +#endif int create_port (); -- cgit v1.2.3