]> git.imager.perl.org - imager.git/commitdiff
allow building GIF/imgif.c on C89 compilers
authorTony Cook <tony@develop-help.com>
Mon, 13 Aug 2012 04:23:17 +0000 (14:23 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 13 Aug 2012 04:23:17 +0000 (14:23 +1000)
Changes
GIF/imgif.c

diff --git a/Changes b/Changes
index 40ac036ac3dbe595fc48178119bf635a71cbca1b..f3839748470bff470d6b376639d07dd9a17de1d6 100644 (file)
--- a/Changes
+++ b/Changes
@@ -6,6 +6,8 @@ Imager release history.  Older releases can be found in Changes.old
 
  - allow building JPEG/imexif.c on C89 compilers.
 
+ - allow building GIF/imgif.c on C89 compilers.
+
 Imager 0.91 - 4 Jun 2012
 ===========
 
index 55b577a6c5d4c877894845813ef6b0e21ca179ad..78f6554e4fb4fdf36fd67d64f844da9b0ea10ac7 100644 (file)
@@ -923,15 +923,14 @@ Returns NULL if the page isn't found.
 
 i_img *
 i_readgif_single_wiol(io_glue *ig, int page) {
-  i_clear_error();
+  GifFileType *GifFile;
 
+  i_clear_error();
   if (page < 0) {
     i_push_error(0, "page must be non-negative");
     return NULL;
   }
 
-  GifFileType *GifFile;
-
   if ((GifFile = DGifOpen((void *)ig, io_glue_read_cb )) == NULL) {
     gif_push_error();
     i_push_error(0, "Cannot create giflib callback object");