app-text/sile: restrict to lua 5.3+
[sgilles-overlay.git] / media-gfx / fbida / files / fbida-2.10-giflib-4.2.patch
blob1e21b8af2bd705be1843b1c4fea974d3ed5bb672
1 --- a/rd/read-gif.c
2 +++ b/rd/read-gif.c
3 @@ -14,6 +14,14 @@
5 #else
6 #define GIF5DATA(x)
7 +// v4.2 removed PrintGifError in favor of GifErrorString, but with a different
8 +// prototype than v5
9 +#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 4) && (GIFLIB_MINOR == 2)
10 +static void PrintGifError()
12 + fprintf(stderr, "GIF library error: %s\n", GifErrorString());
14 +#endif
15 #define PrintGifError(e) PrintGifError()
16 #define DGifOpenFileHandle(x,e) DGifOpenFileHandle(x)
17 #define DGifCloseFile(x,e) DGifCloseFile(x)