[glib] tests/libmoduletestplugins*.c: Update Prototypes
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests/libmoduletestplugins*.c: Update Prototypes
- Date: Mon, 4 Nov 2013 02:32:04 +0000 (UTC)
commit 20f873a0bcafe9d8d929be98ea72a0d0608d076a
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Oct 29 19:12:38 2013 +0800
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 69fdd0f..7a35745 100644
--- a/tests/libmoduletestplugin_a.c
+++ b/tests/libmoduletestplugin_a.c
@@ -30,11 +30,11 @@
#include <gmodule.h>
#include <stdlib.h>
-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 26cc33f..f3b15e9 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]