diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-01-14 00:13:00 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-01-14 00:13:00 -0500 |
commit | 2c13657b0f1d9bd3bb2f6658adc6a410b13f355d (patch) | |
tree | 4e8083c8558d4a04a57ad6dc0a2b9179ae7d95a8 /gio/tests/resourceplugin.c | |
parent | f8756694cf3883b45d88eca99c013511f7ed0c10 (diff) | |
download | glib-2c13657b0f1d9bd3bb2f6658adc6a410b13f355d.tar.gz glib-2c13657b0f1d9bd3bb2f6658adc6a410b13f355d.tar.bz2 glib-2c13657b0f1d9bd3bb2f6658adc6a410b13f355d.zip |
tests: introduce a small hack for visibility
One of our testcases builds a small giomodule for testing the loading of
modules containing resources. Unfortunately, this module gets built
using the same CFLAGS as the rest of GLib, including the visibility
flags (defaulting to hidden).
Use "config.h" to get a declaration of _GLIB_EXTERN that will export
symbols properly and use it to annotate the necessary APIs.
Diffstat (limited to 'gio/tests/resourceplugin.c')
-rw-r--r-- | gio/tests/resourceplugin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gio/tests/resourceplugin.c b/gio/tests/resourceplugin.c index b66d54142..9e3b7048e 100644 --- a/gio/tests/resourceplugin.c +++ b/gio/tests/resourceplugin.c @@ -1,16 +1,18 @@ +#include "config.h" + #include <gio/gio.h> -void +_GLIB_EXTERN void g_io_module_load (GIOModule *module) { } -void +_GLIB_EXTERN void g_io_module_unload (GIOModule *module) { } -char ** +_GLIB_EXTERN char ** g_io_module_query (void) { return NULL; |