From 3dbddb4497c6571687c5c096e8f33daa4de04a79 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 26 Jan 2026 18:33:59 +0200 Subject: [PATCH] Fix image.c compilation when HAVE_GIF is not defined * src/image.c (gif_clear_image): Make it available for other image types. (Bug#80266) --- src/image.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/image.c b/src/image.c index 59be186a839..119287db899 100644 --- a/src/image.c +++ b/src/image.c @@ -9653,6 +9653,8 @@ static const struct image_keyword gif_format[GIF_LAST] = {":background", IMAGE_STRING_OR_NIL_VALUE, 0} }; +#endif + /* Free X resources of GIF image IMG which is used on frame F. Also used by other image types. */ @@ -9663,6 +9665,8 @@ gif_clear_image (struct frame *f, struct image *img) image_clear_image (f, img); } +#if defined (HAVE_GIF) + /* Return true if OBJECT is a valid GIF image specification. */ static bool