Minor visibility changes to libevoral (template objects can be exported in libevoral...
authorJohn Emmas <johne53@tiscali.co.uk>
Fri, 21 Mar 2014 18:57:36 +0000 (18:57 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Fri, 21 Mar 2014 18:57:36 +0000 (18:57 +0000)
libs/evoral/evoral/Note.hpp
libs/evoral/evoral/visibility.h

index e84d6b9dc4e2a29f1102e7db86f3d9f76df73eef..5401271621d0b36c9c23460245e775a174cdbcda 100644 (file)
@@ -33,7 +33,11 @@ namespace Evoral {
  * Currently a note is defined as (on event, length, off event).
  */
 template<typename Time>
+#ifdef COMPILER_MSVC
+class LIBEVORAL_LOCAL Note {
+#else
 class LIBEVORAL_TEMPLATE_API Note {
+#endif
 public:
        Note(uint8_t chan=0, Time time=0, Time len=0, uint8_t note=0, uint8_t vel=0x40);
        Note(const Note<Time>& copy);
index 7f4a898875f7253e19fc7322cc31d90500415d44..dd4fe1ff6433cdbeb7a24f931f5e0019f887bcb1 100644 (file)
@@ -24,8 +24,8 @@
   #define LIBEVORAL_DLL_IMPORT __declspec(dllimport)
   #define LIBEVORAL_DLL_EXPORT __declspec(dllexport)
   #define LIBEVORAL_DLL_LOCAL
-  #define LIBEVORAL_TEMPLATE_DLL_IMPORT
-  #define LIBEVORAL_TEMPLATE_DLL_EXPORT
+  #define LIBEVORAL_TEMPLATE_DLL_IMPORT __declspec(dllimport)
+  #define LIBEVORAL_TEMPLATE_DLL_EXPORT __declspec(dllexport)
 #else
   #define LIBEVORAL_DLL_IMPORT __attribute__ ((visibility ("default")))
   #define LIBEVORAL_DLL_EXPORT __attribute__ ((visibility ("default")))