[librsvg] Fix svgz support in pixbuf loader
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Fix svgz support in pixbuf loader
- Date: Thu, 18 Nov 2010 21:56:53 +0000 (UTC)
commit 9c7d76189c8191ce7070270f42183e827fac8d3d
Author: Edward Sheldrake <ejsheldrake gmail com>
Date: Thu Nov 18 19:26:16 2010 +0000
Fix svgz support in pixbuf loader
HAVE_SVGZ is not defined by the configure script,
so use librsvg-features.h instead.
gdk-pixbuf-loader/io-svg.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk-pixbuf-loader/io-svg.c b/gdk-pixbuf-loader/io-svg.c
index 030bf66..c37b769 100644
--- a/gdk-pixbuf-loader/io-svg.c
+++ b/gdk-pixbuf-loader/io-svg.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "rsvg-private.h"
+#include "librsvg-features.h"
typedef struct {
RsvgHandle *handle;
@@ -233,14 +234,14 @@ fill_info (GdkPixbufFormat *info)
"image/svg-xml",
"image/vnd.adobe.svg+xml",
"text/xml-svg",
-#ifdef HAVE_SVGZ
+#if LIBRSVG_CHECK_FEATURE(SVGZ)
"image/svg+xml-compressed",
#endif
NULL
};
static gchar *extensions[] = {
"svg",
-#ifdef HAVE_SVGZ
+#if LIBRSVG_CHECK_FEATURE(SVGZ)
"svgz",
"svg.gz",
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]