summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-jasper.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-05-27 16:51:33 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-05-27 16:51:33 +0000
commit59596e699f61f21ccdeaed1b175f9ab3fed5e49a (patch)
tree5c239b30843751c2ac852913c174acf4e65c3134 /gdk-pixbuf/io-jasper.c
parenta4f8d6ccffa5d1d0c64cc197054ccde451cefc13 (diff)
downloadgtk+-59596e699f61f21ccdeaed1b175f9ab3fed5e49a.tar.gz
Use explicit G_MODULE_EXPORT decoration when building the loader in
2008-05-27 Tor Lillqvist <tml@novell.com> * io-*.c: Use explicit G_MODULE_EXPORT decoration when building the loader in question as a module. * gdk-pixbuf-io.c: Enable included build of the icns and jasper loaders. svn path=/trunk/; revision=20192
Diffstat (limited to 'gdk-pixbuf/io-jasper.c')
-rw-r--r--gdk-pixbuf/io-jasper.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdk-pixbuf/io-jasper.c b/gdk-pixbuf/io-jasper.c
index 5194ebd001..c6f9bc2943 100644
--- a/gdk-pixbuf/io-jasper.c
+++ b/gdk-pixbuf/io-jasper.c
@@ -262,16 +262,20 @@ jasper_image_load_increment (gpointer data, const guchar *buf, guint size, GErro
return TRUE;
}
-void
-fill_vtable (GdkPixbufModule * module)
+#ifndef INCLUDE_png
+#define MODULE_ENTRY(function) G_MODULE_EXPORT void function
+#else
+#define MODULE_ENTRY(function) void _gdk_pixbuf__jasper_ ## function
+#endif
+
+MODULE_ENTRY (fill_vtable) (GdkPixbufModule * module)
{
module->begin_load = jasper_image_begin_load;
module->stop_load = jasper_image_stop_load;
module->load_increment = jasper_image_load_increment;
}
-void
-fill_info (GdkPixbufFormat * info)
+MODULE_ENTRY (fill_info) (GdkPixbufFormat * info)
{
static GdkPixbufModulePattern signature[] = {
{ " jP", "!!!! ", 100 }, /* file begins with 'jP' at offset 4 */