summaryrefslogtreecommitdiffstats
path: root/suil
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-09-12 17:28:16 +0000
committerDavid Robillard <d@drobilla.net>2012-09-12 17:28:16 +0000
commit5b36db63f3aeb512264b0f38cec2a5a486829fd1 (patch)
tree9faefef9e69fa0abba4e1564dfba51aca6c896b2 /suil
parentd720a0449435a0e096edf5bce3353a71ff90e066 (diff)
downloadsuil-5b36db63f3aeb512264b0f38cec2a5a486829fd1.tar.gz
suil-5b36db63f3aeb512264b0f38cec2a5a486829fd1.tar.bz2
suil-5b36db63f3aeb512264b0f38cec2a5a486829fd1.zip
Fix module loading in static build.
Even when suil itself is built statically, the modules are not, so using SUIL_API for the module entry point (suil_wrapper_new) in this case was not setting dllexport. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4772 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'suil')
-rw-r--r--suil/suil.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/suil/suil.h b/suil/suil.h
index b9adbef..310d6ab 100644
--- a/suil/suil.h
+++ b/suil/suil.h
@@ -25,14 +25,15 @@
#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
+#ifdef _WIN32
+# define SUIL_LIB_IMPORT __declspec(dllimport)
+# define SUIL_LIB_EXPORT __declspec(dllexport)
+#else
+# define SUIL_LIB_IMPORT __attribute__((visibility("default")))
+# define SUIL_LIB_EXPORT __attribute__((visibility("default")))
+#endif
+
#ifdef SUIL_SHARED
-# ifdef _WIN32
-# define SUIL_LIB_IMPORT __declspec(dllimport)
-# define SUIL_LIB_EXPORT __declspec(dllexport)
-# else
-# define SUIL_LIB_IMPORT __attribute__((visibility("default")))
-# define SUIL_LIB_EXPORT __attribute__((visibility("default")))
-# endif
# ifdef SUIL_INTERNAL
# define SUIL_API SUIL_LIB_EXPORT
# else