From 4335f42176d2cc7a20ef0348ad3c28ab604f95b5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 18 Jun 2014 19:35:02 +0300 Subject: [PATCH] src/image.c: Fix last commit. Fixes: debbugs:17790 --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index 3255982a157..4e4447167d2 100644 --- a/src/image.c +++ b/src/image.c @@ -7338,9 +7338,11 @@ gif_close (GifFileType *gif, int *err) retval = fn_DGifCloseFile (gif, err); #else retval = fn_DGifCloseFile (gif); +#if GIFLIB_MAJOR >= 5 if (err) *err = gif->Error; #endif +#endif } /* Load GIF image IMG for use on frame F. Value is true if @@ -7366,9 +7368,7 @@ gif_load (struct frame *f, struct image *img) Lisp_Object specified_data = image_spec_value (img->spec, QCdata, NULL); unsigned long bgcolor = 0; EMACS_INT idx; -#if GIFLIB_MAJOR >= 5 int gif_err; -#endif if (NILP (specified_data)) { -- 2.39.5