summaryrefslogtreecommitdiffstats
path: root/ingen/ingen.h
diff options
context:
space:
mode:
Diffstat (limited to 'ingen/ingen.h')
-rw-r--r--ingen/ingen.h17
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"