mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
add LIBEVORAL_TEMPLATE_API to deal with gcc/msvc difference of opinion
This commit is contained in:
parent
83c0720645
commit
a94dadc759
1 changed files with 6 additions and 0 deletions
|
|
@ -24,10 +24,14 @@
|
||||||
#define LIBEVORAL_DLL_IMPORT __declspec(dllimport)
|
#define LIBEVORAL_DLL_IMPORT __declspec(dllimport)
|
||||||
#define LIBEVORAL_DLL_EXPORT __declspec(dllexport)
|
#define LIBEVORAL_DLL_EXPORT __declspec(dllexport)
|
||||||
#define LIBEVORAL_DLL_LOCAL
|
#define LIBEVORAL_DLL_LOCAL
|
||||||
|
#define LIBEVORAL_TEMPLATE_DLL_IMPORT
|
||||||
|
#define LIBEVORAL_TEMPLATE_DLL_EXPORT
|
||||||
#else
|
#else
|
||||||
#define LIBEVORAL_DLL_IMPORT __attribute__ ((visibility ("default")))
|
#define LIBEVORAL_DLL_IMPORT __attribute__ ((visibility ("default")))
|
||||||
#define LIBEVORAL_DLL_EXPORT __attribute__ ((visibility ("default")))
|
#define LIBEVORAL_DLL_EXPORT __attribute__ ((visibility ("default")))
|
||||||
#define LIBEVORAL_DLL_LOCAL __attribute__ ((visibility ("hidden")))
|
#define LIBEVORAL_DLL_LOCAL __attribute__ ((visibility ("hidden")))
|
||||||
|
#define LIBEVORAL_TEMPLATE_DLL_IMPORT __attribute__ ((visibility ("default")))
|
||||||
|
#define LIBEVORAL_TEMPLATE_DLL_EXPORT __attribute__ ((visibility ("default")))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LIBEVORAL_STATIC // libevoral is not a DLL
|
#ifdef LIBEVORAL_STATIC // libevoral is not a DLL
|
||||||
|
|
@ -36,8 +40,10 @@
|
||||||
#else
|
#else
|
||||||
#ifdef LIBEVORAL_DLL_EXPORTS // defined if we are building the libevoral DLL (instead of using it)
|
#ifdef LIBEVORAL_DLL_EXPORTS // defined if we are building the libevoral DLL (instead of using it)
|
||||||
#define LIBEVORAL_API LIBEVORAL_DLL_EXPORT
|
#define LIBEVORAL_API LIBEVORAL_DLL_EXPORT
|
||||||
|
#define LIBEVORAL_TEMPLATE_API LIBEVORAL_TEMPLATE_DLL_EXPORT
|
||||||
#else
|
#else
|
||||||
#define LIBEVORAL_API LIBEVORAL_DLL_IMPORT
|
#define LIBEVORAL_API LIBEVORAL_DLL_IMPORT
|
||||||
|
#define LIBEVORAL_TEMPLATE_API LIBEVORAL_TEMPLATE_DLL_IMPORT
|
||||||
#endif
|
#endif
|
||||||
#define LIBEVORAL_LOCAL LIBEVORAL_DLL_LOCAL
|
#define LIBEVORAL_LOCAL LIBEVORAL_DLL_LOCAL
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue