From 04f9e0b516ea70ac674f0c0ac2fe779630503a3f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 8 May 2019 16:03:08 +0300 Subject: [PATCH] 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. --- src/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index 3d724a773b6..725eb4b8d09 100644 --- a/src/image.c +++ b/src/image.c @@ -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 -- 2.39.2