diff options
author | David Robillard <d@drobilla.net> | 2015-03-02 17:14:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-02 17:14:31 +0000 |
commit | e5da085b75ff7c33a10ac2b03434d487c47340f2 (patch) | |
tree | c59e52d7442dd735ec48dd0fc2d11e6838a15d6a /ingen/ingen.h | |
parent | f69c75e637cc3c789a675d1811a2f632732bafc0 (diff) | |
download | ingen-e5da085b75ff7c33a10ac2b03434d487c47340f2.tar.gz ingen-e5da085b75ff7c33a10ac2b03434d487c47340f2.tar.bz2 ingen-e5da085b75ff7c33a10ac2b03434d487c47340f2.zip |
Fix compilation with -fvisibility=hidden.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5611 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ingen/ingen.h')
-rw-r--r-- | ingen/ingen.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ingen/ingen.h b/ingen/ingen.h index ba873c75..be9fde29 100644 --- a/ingen/ingen.h +++ b/ingen/ingen.h @@ -17,6 +17,23 @@ #ifndef INGEN_H #define INGEN_H +#ifdef INGEN_SHARED +# ifdef _WIN32 +# define INGEN_LIB_IMPORT __declspec(dllimport) +# define INGEN_LIB_EXPORT __declspec(dllexport) +# else +# define INGEN_LIB_IMPORT __attribute__((visibility("default"))) +# define INGEN_LIB_EXPORT __attribute__((visibility("default"))) +# endif +# ifdef INGEN_INTERNAL +# define INGEN_API INGEN_LIB_EXPORT +# else +# define INGEN_API INGEN_LIB_IMPORT +# endif +#else +# define INGEN_API +#endif + #define INGEN_NS "http://drobilla.net/ns/ingen#" #define INGEN__Arc INGEN_NS "Arc" |