From 753096efc5309eebfc3535cad8d8efead512a25c Mon Sep 17 00:00:00 2001 From: VKamyshniy Date: Mon, 24 Nov 2014 02:54:09 +0200 Subject: [PATCH] [Commit] Compilation error fix --- libs/ardour/ardour/async_midi_port.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ardour/async_midi_port.h b/libs/ardour/ardour/async_midi_port.h index 373d6b7668..25dcd178c7 100644 --- a/libs/ardour/ardour/async_midi_port.h +++ b/libs/ardour/ardour/async_midi_port.h @@ -62,13 +62,18 @@ class LIBARDOUR_API AsyncMIDIPort : public ARDOUR::MidiPort, public MIDI::Port { /* clears async request communication channel */ void clear () { - return xthread.drain (); +#ifndef PLATFORM_WINDOWS + xthread.drain (); +#endif } /* Not selectable; use ios() */ int selectable() const { return -1; } - Glib::RefPtr ios() { +#ifndef PLATFORM_WINDOWS return xthread.ios(); +#else + Glib::RefPtr(); +#endif } void set_timer (boost::function&); @@ -84,7 +89,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 ();