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)
This commit is contained in:
Eli Zaretskii 2026-01-26 18:33:59 +02:00
parent 120a451c04
commit 3dbddb4497

View file

@ -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