[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 04f9e0b: Fix compilation with old versions of librs
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 04f9e0b: Fix compilation with old versions of librsvg |
Date: |
Wed, 8 May 2019 09:05:17 -0400 (EDT) |
branch: master
commit 04f9e0b516ea70ac674f0c0ac2fe779630503a3f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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 3d724a7..725eb4b 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 04f9e0b: Fix compilation with old versions of librsvg,
Eli Zaretskii <=