mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
Fix module-test in a better way
Avoid having visibility attribute directly in the code by adding a _GLIB_EXTERN-decorated declaration for the exported variables.
This commit is contained in:
parent
d4f0ae2c69
commit
7e00f38191
@ -39,7 +39,8 @@ void g_clash_func (void);
|
||||
void gplugin_say_boo_func (void);
|
||||
void gplugin_a_module_func (GModule *module);
|
||||
|
||||
__attribute__((visibility("default"))) gchar* gplugin_a_state;
|
||||
_GLIB_EXTERN gchar* gplugin_a_state;
|
||||
gchar* gplugin_a_state;
|
||||
|
||||
_GLIB_EXTERN void
|
||||
gplugin_a_func (void)
|
||||
|
@ -31,7 +31,8 @@
|
||||
|
||||
#include <gmodule.h>
|
||||
|
||||
__attribute__((visibility("default"))) gchar* gplugin_b_state;
|
||||
_GLIB_EXTERN gchar* gplugin_b_state;
|
||||
gchar* gplugin_b_state;
|
||||
|
||||
const gchar* g_module_check_init (GModule *module);
|
||||
void g_module_unload (GModule *module);
|
||||
|
Loading…
Reference in New Issue
Block a user