13
0

Minor visibility changes to libevoral (template objects can be exported in libevoral because they're always instantiated in the actual DLL).

This commit is contained in:
John Emmas 2014-03-21 18:57:36 +00:00
parent abab819bb3
commit 34ebb682a4
2 changed files with 6 additions and 2 deletions

View 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);

View 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")))