'libs/surfaces' - Add an additional visibility specifier (ARDOURCP_API as well as...
authorJohn Emmas <johne53@tiscali.co.uk>
Wed, 4 Sep 2013 14:54:35 +0000 (15:54 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Wed, 4 Sep 2013 14:54:35 +0000 (15:54 +0100)
libs/surfaces/control_protocol/control_protocol/basic_ui.h
libs/surfaces/control_protocol/control_protocol/control_protocol.h

index 96a12274635ba8f8e5d991ea6c5317269567e0ae..9bbfe659796f820dc77a55cdaf859bcb38a87e58 100644 (file)
 
 #include "timecode/time.h"
 
+#include "ardour/visibility.h"
+
 namespace ARDOUR {
        class Session;
        class SessionEvent;
 }
 
-class BasicUI {
+#ifdef ARDOURCP_DLL_EXPORTS // defined if we are building the ARDOUR Control Protocol DLL (instead of using it)
+    #define ARDOURCP_API LIBARDOUR_HELPER_DLL_EXPORT
+#else
+    #define ARDOURCP_API LIBARDOUR_HELPER_DLL_IMPORT
+#endif 
+#define ARDOURCP_LOCAL LIBARDOUR_HELPER_DLL_LOCAL
+
+class ARDOURCP_API BasicUI {
   public:
        BasicUI (ARDOUR::Session&);
        virtual ~BasicUI ();
index b20771b7266659f4e821517e89059b6cb36017c8..37322530e46f6fc2598c3c9cc17bd40020f0a499 100644 (file)
@@ -33,8 +33,6 @@
 #include "control_protocol/basic_ui.h"
 #include "control_protocol/types.h"
 
-#include "ardour/visibility.h"
-
 #ifdef ARDOURSURFACE_DLL_EXPORTS // defined if we are building the ARDOUR surface DLLs (instead of using them)
     #define ARDOURSURFACE_API LIBARDOUR_HELPER_DLL_EXPORT
 #else
@@ -48,7 +46,7 @@ class Route;
 class Session;
 class Bundle;
 
-class ARDOURSURFACE_API ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList, public BasicUI
+class ARDOURCP_API ControlProtocol : public PBD::Stateful, public PBD::ScopedConnectionList, public BasicUI
 {
   public:
        ControlProtocol (Session&, std::string name);