X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Flibpbd_visibility.h;h=51fed250841cb480cb0f8857dd570b31e18212df;hb=4dc63966f0872efe768dad61eb9b8785d06b92d1;hp=14b12556499d05b57606a16e9a8d55772b324ec8;hpb=19395ac258bd48595790bcb6fa8b206c43a64796;p=ardour.git diff --git a/libs/pbd/pbd/libpbd_visibility.h b/libs/pbd/pbd/libpbd_visibility.h index 14b1255649..51fed25084 100644 --- a/libs/pbd/pbd/libpbd_visibility.h +++ b/libs/pbd/pbd/libpbd_visibility.h @@ -20,25 +20,39 @@ #ifndef __libpbd_libpbd_visibility_h__ #define __libpbd_libpbd_visibility_h__ -#if defined(COMPILER_MSVC) || defined(COMPILER_MINGW64) +#if defined(COMPILER_MSVC) #define LIBPBD_DLL_IMPORT __declspec(dllimport) #define LIBPBD_DLL_EXPORT __declspec(dllexport) #define LIBPBD_DLL_LOCAL + #define LIBPBD_TEMPLATE_DLL_IMPORT + #define LIBPBD_TEMPLATE_DLL_EXPORT + #define LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT __declspec(dllimport) + #define LIBPBD_TEMPLATE_MEMBER_DLL_EXPORT __declspec(dllexport) #else #define LIBPBD_DLL_IMPORT __attribute__ ((visibility ("default"))) #define LIBPBD_DLL_EXPORT __attribute__ ((visibility ("default"))) #define LIBPBD_DLL_LOCAL __attribute__ ((visibility ("hidden"))) + #define LIBPBD_TEMPLATE_DLL_IMPORT __attribute__ ((visibility ("default"))) + #define LIBPBD_TEMPLATE_DLL_EXPORT __attribute__ ((visibility ("default"))) + #define LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT + #define LIBPBD_TEMPLATE_MEMBER_DLL_EXPORT #endif #ifdef LIBPBD_STATIC // libpbd is a DLL #define LIBPBD_API #define LIBPBD_LOCAL + #define LIBPBD_TEMPLATE_API + #define LIBPBD_TEMPLATE_MEMBER_API #else #ifdef LIBPBD_DLL_EXPORTS // defined if we are building the libpbd DLL (instead of using it) #define LIBPBD_API LIBPBD_DLL_EXPORT + #define LIBPBD_TEMPLATE_API LIBPBD_TEMPLATE_DLL_EXPORT + #define LIBPBD_TEMPLATE_MEMBER_API LIBPBD_TEMPLATE_MEMBER_DLL_EXPORT #else #define LIBPBD_API LIBPBD_DLL_IMPORT - #endif + #define LIBPBD_TEMPLATE_API LIBPBD_TEMPLATE_DLL_IMPORT + #define LIBPBD_TEMPLATE_MEMBER_API LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT + #endif #define LIBPBD_LOCAL LIBPBD_DLL_LOCAL #endif