Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb5c404
)
ecere/gfx/bitmaps/GIFFormat: Fixes to build with Giflib 5.0.x
author
Jerome St-Louis
<jerome@ecere.com>
Tue, 16 Jun 2015 08:17:02 +0000
(
04:17
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Tue, 16 Jun 2015 08:30:53 +0000
(
04:30
-0400)
ecere/src/gfx/bitmaps/GIFFormat.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/bitmaps/GIFFormat.ec
b/ecere/src/gfx/bitmaps/GIFFormat.ec
index
3c74624
..
9d81af9
100644
(file)
--- a/
ecere/src/gfx/bitmaps/GIFFormat.ec
+++ b/
ecere/src/gfx/bitmaps/GIFFormat.ec
@@
-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);