summaryrefslogtreecommitdiffstats
path: root/include/ingen/Module.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-19 14:08:13 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 00:42:31 -0400
commit2b1513dc20d8c6a1d27c17d03d8bba98953ebfbc (patch)
tree52e42670217cf8ad7081c3913fc856a7c3b47269 /include/ingen/Module.hpp
parent2f44d47ab3d06e106e034e1e66f5afc06ee75f89 (diff)
downloadingen-2b1513dc20d8c6a1d27c17d03d8bba98953ebfbc.tar.gz
ingen-2b1513dc20d8c6a1d27c17d03d8bba98953ebfbc.tar.bz2
ingen-2b1513dc20d8c6a1d27c17d03d8bba98953ebfbc.zip
Separate export macro definitions between modules
Diffstat (limited to 'include/ingen/Module.hpp')
-rw-r--r--include/ingen/Module.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ingen/Module.hpp b/include/ingen/Module.hpp
index b540fe7d..149c25f9 100644
--- a/include/ingen/Module.hpp
+++ b/include/ingen/Module.hpp
@@ -55,8 +55,14 @@ public:
extern "C" {
+#ifdef _WIN32
+# define INGEN_MODULE_EXPORT __declspec(dllexport)
+#else
+# define INGEN_MODULE_EXPORT __attribute__((visibility("default")))
+#endif
+
/** Prototype for the ingen_module_load() entry point in an ingen module. */
-INGEN_API ingen::Module* ingen_module_load();
+INGEN_MODULE_EXPORT ingen::Module* ingen_module_load();
}