Skip to content

Commit 04f9e0b

Browse files
committed
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.
1 parent 0728b40 commit 04f9e0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/image.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9465,7 +9465,8 @@ svg_load_image (struct frame *f, struct image *img, char *contents,
94659465
#if GNUC_PREREQ (4, 6, 0)
94669466
#pragma GCC diagnostic push
94679467
#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)
94699470
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
94709471
#endif
94719472

0 commit comments

Comments
 (0)