aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2019-05-08 16:03:08 +0300
committerEli Zaretskii2019-05-08 16:03:08 +0300
commit04f9e0b516ea70ac674f0c0ac2fe779630503a3f (patch)
tree19de8a98e92875e53b9d9eb6e0d6f041430ff428 /src
parent0728b40cc7b4e171281f7394aa4993b199166b90 (diff)
downloademacs-04f9e0b516ea70ac674f0c0ac2fe779630503a3f.tar.gz
emacs-04f9e0b516ea70ac674f0c0ac2fe779630503a3f.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
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,
9465 #if GNUC_PREREQ (4, 6, 0) 9465 #if GNUC_PREREQ (4, 6, 0)
9466 #pragma GCC diagnostic push 9466 #pragma GCC diagnostic push
9467 #endif 9467 #endif
9468 #if LIBRSVG_CHECK_VERSION (2, 45, 1) && GNUC_PREREQ (4, 2, 0) 9468 #if defined LIBRSVG_CHECK_VERSION && LIBRSVG_CHECK_VERSION (2, 45, 1) \
9469 && GNUC_PREREQ (4, 2, 0)
9469 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 9470 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
9470 #endif 9471 #endif
9471 9472