summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gtk2_in_qt4.cpp2
-rw-r--r--src/qt4_in_gtk2.cpp2
-rw-r--r--src/suil_internal.h2
-rw-r--r--src/win_in_gtk2.cpp2
-rw-r--r--src/x11_in_gtk2.c2
-rw-r--r--src/x11_in_qt4.cpp2
-rw-r--r--suil/suil.h15
7 files changed, 14 insertions, 13 deletions
diff --git a/src/gtk2_in_qt4.cpp b/src/gtk2_in_qt4.cpp
index 35d1f3c..a9298bf 100644
--- a/src/gtk2_in_qt4.cpp
+++ b/src/gtk2_in_qt4.cpp
@@ -73,7 +73,7 @@ wrapper_wrap(SuilWrapper* wrapper,
return 0;
}
-SUIL_API
+SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
diff --git a/src/qt4_in_gtk2.cpp b/src/qt4_in_gtk2.cpp
index c04e25c..4bd61a2 100644
--- a/src/qt4_in_gtk2.cpp
+++ b/src/qt4_in_gtk2.cpp
@@ -128,7 +128,7 @@ wrapper_free(SuilWrapper* wrapper)
}
}
-SUIL_API
+SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
diff --git a/src/suil_internal.h b/src/suil_internal.h
index 62a5ace..4d4bfde 100644
--- a/src/suil_internal.h
+++ b/src/suil_internal.h
@@ -94,7 +94,7 @@ typedef SuilWrapper* (*SuilWrapperNewFunc)(SuilHost* host,
unsigned n_features);
/** Prototype for suil_wrapper_new in each module. */
-SUIL_API
+SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
diff --git a/src/win_in_gtk2.cpp b/src/win_in_gtk2.cpp
index 3e0d12c..a4466ce 100644
--- a/src/win_in_gtk2.cpp
+++ b/src/win_in_gtk2.cpp
@@ -109,7 +109,7 @@ event_filter(GdkXEvent* xevent, GdkEvent* event, gpointer data)
return GDK_FILTER_CONTINUE;
}
-SUIL_API
+SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c
index c2c73e3..cc33992 100644
--- a/src/x11_in_gtk2.c
+++ b/src/x11_in_gtk2.c
@@ -143,7 +143,7 @@ event_filter(GdkXEvent* xevent, GdkEvent* event, gpointer data)
return GDK_FILTER_CONTINUE;
}
-SUIL_API
+SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
diff --git a/src/x11_in_qt4.cpp b/src/x11_in_qt4.cpp
index 669c9b4..a39ba28 100644
--- a/src/x11_in_qt4.cpp
+++ b/src/x11_in_qt4.cpp
@@ -44,7 +44,7 @@ wrapper_resize(LV2UI_Feature_Handle handle, int width, int height)
return 0;
}
-SUIL_API
+SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
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