Statically link libtimecode into libmidi++ instead of libardour
[ardour.git] / libs / midi++2 / mmc.cc
index b93dc0f260503bb5e84088683caa1296ba2cdaa7..a3f8f01fe429a9ddac80ac11a1772d0a9d90f19c 100644 (file)
@@ -22,6 +22,7 @@
 #include <map>
 
 #include "timecode/time.h"
+#include "timecode/bbt_time.h"
 
 #include "pbd/error.h"
 
@@ -33,6 +34,13 @@ using namespace std;
 using namespace MIDI;
 using namespace PBD;
 
+/**
+ * As libtimecode is linked statically to libmidi++ this
+ * is necessary to pull in all the symbols from libtimecode
+ * so they are exported for other users of libtimecode.
+ */
+double tmp = Timecode::BBT_Time::ticks_per_beat;
+
 static std::map<int,string> mmc_cmd_map;
 static void build_mmc_cmd_map ()
 {