From 5b36db63f3aeb512264b0f38cec2a5a486829fd1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Sep 2012 17:28:16 +0000 Subject: 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 --- src/gtk2_in_qt4.cpp | 2 +- src/qt4_in_gtk2.cpp | 2 +- src/suil_internal.h | 2 +- src/win_in_gtk2.cpp | 2 +- src/x11_in_gtk2.c | 2 +- src/x11_in_qt4.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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, -- cgit v1.2.1