ecere/gfx/bitmaps/GIFFormat: Fixes to build with Giflib 5.0.x
authorJerome St-Louis <jerome@ecere.com>
Tue, 16 Jun 2015 08:17:02 +0000 (04:17 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 16 Jun 2015 08:17:02 +0000 (04:17 -0400)
ecere/src/gfx/bitmaps/GIFFormat.ec

index d584a4f..681692d 100644 (file)
@@ -28,7 +28,7 @@ class GIFFormat : BitmapFormat
    {
       bool result = false;
 
-#if GIFLIB_MAJOR >= 5
+#if (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
       GifFileType * gifFile = DGifOpen(f, ReadData, null);
 #else
       GifFileType * gifFile = DGifOpen(f, ReadData);
@@ -107,7 +107,7 @@ class GIFFormat : BitmapFormat
                result = true;
             }
          }
-#if GIFLIB_MAJOR >= 5
+#if (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
          DGifCloseFile(gifFile, null);
 #else
          DGifCloseFile(gifFile);