#ifndef __libpbd_libpbd_visibility_h__
#define __libpbd_libpbd_visibility_h__
-#if defined(COMPILER_MSVC) || defined(__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 LIBPDB_TEMPLATE_DLL_IMPORT __attribute__ ((visibility ("default")))
+ #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
#define LIBPBD_TEMPLATE_API LIBPBD_TEMPLATE_DLL_IMPORT
- #endif
+ #define LIBPBD_TEMPLATE_MEMBER_API LIBPBD_TEMPLATE_MEMBER_DLL_IMPORT
+ #endif
#define LIBPBD_LOCAL LIBPBD_DLL_LOCAL
#endif