aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2026-01-26 18:33:59 +0200
committerEli Zaretskii2026-01-26 18:33:59 +0200
commit3dbddb4497c6571687c5c096e8f33daa4de04a79 (patch)
tree01e8eefad9479db88a8c434d5641c013dd110a95 /src
parent120a451c040011925c3c736058f2ce040e04d5fc (diff)
downloademacs-3dbddb4497c6571687c5c096e8f33daa4de04a79.tar.gz
emacs-3dbddb4497c6571687c5c096e8f33daa4de04a79.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/image.c4
1 files changed, 4 insertions, 0 deletions
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] =
9653 {":background", IMAGE_STRING_OR_NIL_VALUE, 0} 9653 {":background", IMAGE_STRING_OR_NIL_VALUE, 0}
9654}; 9654};
9655 9655
9656#endif
9657
9656/* Free X resources of GIF image IMG which is used on frame F. 9658/* Free X resources of GIF image IMG which is used on frame F.
9657 Also used by other image types. */ 9659 Also used by other image types. */
9658 9660
@@ -9663,6 +9665,8 @@ gif_clear_image (struct frame *f, struct image *img)
9663 image_clear_image (f, img); 9665 image_clear_image (f, img);
9664} 9666}
9665 9667
9668#if defined (HAVE_GIF)
9669
9666/* Return true if OBJECT is a valid GIF image specification. */ 9670/* Return true if OBJECT is a valid GIF image specification. */
9667 9671
9668static bool 9672static bool