diff --git a/src/image.c b/src/image.c index 119287db899..5a4bc3024c3 100644 --- a/src/image.c +++ b/src/image.c @@ -9655,6 +9655,8 @@ static const struct image_keyword gif_format[GIF_LAST] = #endif +#if defined HAVE_GIF || defined HAVE_WEBP + /* Free X resources of GIF image IMG which is used on frame F. Also used by other image types. */ @@ -9665,6 +9667,8 @@ gif_clear_image (struct frame *f, struct image *img) image_clear_image (f, img); } +#endif /* defined HAVE_GIF || defined HAVE_WEBP */ + #if defined (HAVE_GIF) /* Return true if OBJECT is a valid GIF image specification. */