]> git.eshelyaron.com Git - emacs.git/commitdiff
src/image.c: Fix last commit.
authorEli Zaretskii <eliz@gnu.org>
Wed, 18 Jun 2014 16:35:02 +0000 (19:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 18 Jun 2014 16:35:02 +0000 (19:35 +0300)
Fixes: debbugs:17790
src/image.c

index 3255982a157e42cd5c4f3ba8c9308f4a81a9d594..4e4447167d26fc96723094ac3673a936960794c0 100644 (file)
@@ -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))
     {