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
This commit is contained in:
Chun-wei Fan 2013-10-29 19:12:38 +08:00
parent 39a62a064b
commit 20f873a0bc
2 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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)