From 20f873a0bcafe9d8d929be98ea72a0d0608d076a Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 29 Oct 2013 19:12:38 +0800 Subject: [PATCH] tests/libmoduletestplugins*.c: Update Prototypes Visual C++ does not like function declarations being different from their prototypes, so make the prototypes match the declarations by decorating them with G_MODULE_EXPORT. https://bugzilla.gnome.org/show_bug.cgi?id=711047 --- tests/libmoduletestplugin_a.c | 10 +++++----- tests/libmoduletestplugin_b.c | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/libmoduletestplugin_a.c b/tests/libmoduletestplugin_a.c index 69fdd0f70..7a35745aa 100644 --- a/tests/libmoduletestplugin_a.c +++ b/tests/libmoduletestplugin_a.c @@ -30,11 +30,11 @@ #include #include -void gplugin_a_func (void); -void gplugin_clash_func (void); -void g_clash_func (void); -void gplugin_say_boo_func (void); -void gplugin_a_module_func (GModule *module); +G_MODULE_EXPORT void gplugin_a_func (void); +G_MODULE_EXPORT void gplugin_clash_func (void); +G_MODULE_EXPORT void g_clash_func (void); +G_MODULE_EXPORT void gplugin_say_boo_func (void); +G_MODULE_EXPORT void gplugin_a_module_func (GModule *module); G_MODULE_EXPORT gchar* gplugin_a_state; diff --git a/tests/libmoduletestplugin_b.c b/tests/libmoduletestplugin_b.c index 26cc33fc9..f3b15e9fd 100644 --- a/tests/libmoduletestplugin_b.c +++ b/tests/libmoduletestplugin_b.c @@ -31,13 +31,13 @@ G_MODULE_EXPORT gchar* gplugin_b_state; -const gchar* g_module_check_init (GModule *module); -void g_module_unload (GModule *module); +G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module); +G_MODULE_EXPORT void g_module_unload (GModule *module); -void gplugin_b_func (void); -void gplugin_clash_func (void); -void g_clash_func (void); -void gplugin_say_boo_func (void); +G_MODULE_EXPORT void gplugin_b_func (void); +G_MODULE_EXPORT void gplugin_clash_func (void); +G_MODULE_EXPORT void g_clash_func (void); +G_MODULE_EXPORT void gplugin_say_boo_func (void); G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module)