when mingw is mingw64, it appears that we need to use __declspec() and not __attribut...
[ardour.git] / libs / evoral / evoral / PatchChange.hpp
index b1a42c6f2e7560025b9041e6a75d9815775b7cd2..e05157aa92318abdf1ea81a357b3225b83058151 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef EVORAL_PATCH_CHANGE_HPP
 #define EVORAL_PATCH_CHANGE_HPP
 
+#include "evoral/visibility.h"
 #include "evoral/Event.hpp"
 #include "evoral/MIDIEvent.hpp"
 
@@ -29,7 +30,7 @@ namespace Evoral {
  *  bank select and then a program change.
  */
 template<typename Time>
-class PatchChange
+class /*LIBEVORAL_API*/ PatchChange
 {
 public:
        /** @param t Time.
@@ -123,7 +124,7 @@ public:
                        return time() < o.time();
                }
 
-               if (bank != o.bank()) {
+               if (bank() != o.bank()) {
                        return bank() < o.bank();
                }
 
@@ -166,7 +167,7 @@ private:
 }
 
 template<typename Time>
-std::ostream& operator<< (std::ostream& o, const Evoral::PatchChange<Time>& p) {
+/*LIBEVORAL_API*/ std::ostream& operator<< (std::ostream& o, const Evoral::PatchChange<Time>& p) {
        o << "Patch Change " << p.id() << " @ " << p.time() << " bank " << (int) p.bank() << " program " << (int) p.program();
        return o;
 }