mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 15:38:44 +02: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user