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:30:53 +0000 (04:30 -0400)
ecere/src/gfx/bitmaps/GIFFormat.ec

index 3c74624..9d81af9 100644 (file)
@@ -26,7 +26,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);
@@ -105,7 +105,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);