Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db6f91
)
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:17:02 +0000
(
04:17
-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
d584a4f
..
681692d
100644
(file)
--- a/
ecere/src/gfx/bitmaps/GIFFormat.ec
+++ b/
ecere/src/gfx/bitmaps/GIFFormat.ec
@@
-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);