gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r27469 - Extractor/src/plugins


From: gnunet
Subject: [GNUnet-SVN] r27469 - Extractor/src/plugins
Date: Tue, 18 Jun 2013 15:50:00 +0200

Author: amatus
Date: 2013-06-18 15:49:59 +0200 (Tue, 18 Jun 2013)
New Revision: 27469

Modified:
   Extractor/src/plugins/gif_extractor.c
Log:
Support giflib version 4.2.x



Modified: Extractor/src/plugins/gif_extractor.c
===================================================================
--- Extractor/src/plugins/gif_extractor.c       2013-06-18 11:40:32 UTC (rev 
27468)
+++ Extractor/src/plugins/gif_extractor.c       2013-06-18 13:49:59 UTC (rev 
27469)
@@ -67,8 +67,10 @@
   GifByteType *ext;
   int et;
   char dims[128];
-/* GIFLIB >= 5.0 does not define GIF_LIB_VERSION anymore */
-#if !defined (GIF_LIB_VERSION)
+#if defined (GIF_LIB_VERSION) || GIFLIB_MAJOR <= 4
+  if (NULL == (gif_file = DGifOpen (ec, &gif_read_func)))
+    return; /* not a GIF */
+#else
   int gif_error;
   
   gif_error = 0;
@@ -79,9 +81,6 @@
       EGifCloseFile (gif_file);
     return; /* not a GIF */
   }
-#else
-  if (NULL == (gif_file = DGifOpen (ec, &gif_read_func)))
-    return; /* not a GIF */
 #endif
   if (0 !=
       ec->proc (ec->cls,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]