X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2Fvisibility.h;h=6c6f3825d74ac127d75aa828d1c874e6c8666480;hb=8a18929d57ef82b1233278668a9efe78fe1c17f0;hp=fc6d23a401eaae404766cc25430d57de50e2cf6a;hpb=e7c47747286c16aa575456b07120e1e8e8271bd5;p=ardour.git diff --git a/libs/evoral/evoral/visibility.h b/libs/evoral/evoral/visibility.h index fc6d23a401..6c6f3825d7 100644 --- a/libs/evoral/evoral/visibility.h +++ b/libs/evoral/evoral/visibility.h @@ -24,10 +24,14 @@ #define LIBEVORAL_DLL_IMPORT __declspec(dllimport) #define LIBEVORAL_DLL_EXPORT __declspec(dllexport) #define LIBEVORAL_DLL_LOCAL + #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"))) #define LIBEVORAL_DLL_LOCAL __attribute__ ((visibility ("hidden"))) + #define LIBEVORAL_TEMPLATE_DLL_IMPORT __attribute__ ((visibility ("default"))) + #define LIBEVORAL_TEMPLATE_DLL_EXPORT __attribute__ ((visibility ("default"))) #endif #ifdef LIBEVORAL_STATIC // libevoral is not a DLL @@ -36,9 +40,11 @@ #else #ifdef LIBEVORAL_DLL_EXPORTS // defined if we are building the libevoral DLL (instead of using it) #define LIBEVORAL_API LIBEVORAL_DLL_EXPORT + #define LIBEVORAL_TEMPLATE_API LIBEVORAL_TEMPLATE_DLL_EXPORT #else #define LIBEVORAL_API LIBEVORAL_DLL_IMPORT - #endif + #define LIBEVORAL_TEMPLATE_API LIBEVORAL_TEMPLATE_DLL_IMPORT + #endif #define LIBEVORAL_LOCAL LIBEVORAL_DLL_LOCAL #endif