summaryrefslogtreecommitdiff
path: root/gmodule/testgmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'gmodule/testgmodule.c')
-rw-r--r--gmodule/testgmodule.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gmodule/testgmodule.c b/gmodule/testgmodule.c
index 71e1ed9f8..ff7b4397e 100644
--- a/gmodule/testgmodule.c
+++ b/gmodule/testgmodule.c
@@ -20,7 +20,7 @@
#include <gmodule.h>
-void
+G_MODULE_EXPORT void
g_clash_func (void)
{
g_print ("GModule: Hello global clash\n");
@@ -44,8 +44,13 @@ main (int arg,
string = g_get_current_dir ();
g_print ("testgmodule (%s):\n", string);
+#ifdef NATIVE_WIN32
+ plugin_a = g_strconcat (string, "\\libgplugin_a.dll", NULL);
+ plugin_b = g_strconcat (string, "\\libgplugin_b.dll", NULL);
+#else /* !NATIVE_WIN32 */
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.so", NULL);
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.so", NULL);
+#endif /* NATIVE_WIN32 */
g_free (string);
/* module handles