Commit 9c7d7618 authored by Edward Sheldrake's avatar Edward Sheldrake Committed by Christian Persch

Fix svgz support in pixbuf loader

HAVE_SVGZ is not defined by the configure script,
so use librsvg-features.h instead.
parent 105b0686
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment