tests/libmoduletestplugins*.c: Update Prototypes
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 29 Oct 2013 11:12:38 +0000 (19:12 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 4 Nov 2013 02:31:28 +0000 (10:31 +0800)
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
tests/libmoduletestplugin_b.c

index 69fdd0f..7a35745 100644 (file)
 #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;
 
index 26cc33f..f3b15e9 100644 (file)
 
 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)