summaryrefslogtreecommitdiffstats
path: root/suil
diff options
context:
space:
mode:
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