From: Eli Zaretskii Date: Wed, 18 Jun 2014 16:35:02 +0000 (+0300) Subject: src/image.c: Fix last commit. X-Git-Tag: emacs-24.3.92~63 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4335f42176d2cc7a20ef0348ad3c28ab604f95b5;p=emacs.git src/image.c: Fix last commit. Fixes: debbugs:17790 --- 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)) {