Commit 04f9e0b5 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix compilation with old versions of librsvg

* src/image.c (svg_load_image): Use LIBRSVG_CHECK_VERSION only
if it's defined; it isn't in old versions of librsvg.
parent 0728b40c
Pipeline #1609 failed with stage
in 53 minutes and 8 seconds
......@@ -9465,7 +9465,8 @@ svg_load_image (struct frame *f, struct image *img, char *contents,
#if GNUC_PREREQ (4, 6, 0)
#pragma GCC diagnostic push
#endif
#if LIBRSVG_CHECK_VERSION (2, 45, 1) && GNUC_PREREQ (4, 2, 0)
#if defined LIBRSVG_CHECK_VERSION && LIBRSVG_CHECK_VERSION (2, 45, 1) \
&& GNUC_PREREQ (4, 2, 0)
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#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