Skip to content

Commit

Permalink
ecere/gfx/bitmaps/GIFFormat: Fixes to build with Giflib 5.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Jun 16, 2015
1 parent bb5c404 commit 38f6e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecere/src/gfx/bitmaps/GIFFormat.ec
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 38f6e9c

Please sign in to comment.