remove inclusion of jack.h so that we can build on a platform without JACK
[ardour.git] / libs / midi++2 / midi++ / port.h
index 4e63d41141653f8e976e1acbf679f6e54eb06869..5a52cfe898fe97b1adc39be538bb173ee5e3c2a6 100644 (file)
 #include <string>
 #include <iostream>
 
+#include <pthread.h>
+
 #include "pbd/xml++.h"
+#ifndef PLATFORM_WINDOWS
 #include "pbd/crossthread.h"
+#endif
 #include "pbd/signals.h"
 #include "pbd/ringbuffer.h"
 
+#include "midi++/libmidi_visibility.h"
 #include "midi++/types.h"
 #include "midi++/parser.h"
 
@@ -35,11 +40,11 @@ namespace MIDI {
 class Channel;
 class PortRequest;
 
-class Port {
+class LIBMIDIPP_API Port {
   public:
        enum Flags {
-               IsInput = JackPortIsInput,
-               IsOutput = JackPortIsOutput,
+               IsInput = 0x1,  /* MUST MATCH JACK's JackPortIsInput */
+               IsOutput = 0x2, /* MUST MATCH JACK's JackPortIsOutput */
        };
        
        Port (std::string const &, Flags);
@@ -134,7 +139,7 @@ class Port {
        void init (std::string const &, Flags);
 };
 
-struct PortSet {
+struct LIBMIDIPP_API PortSet {
     PortSet (std::string str) : owner (str) { }
     
     std::string owner;