blob: 1e21b8af2bd705be1843b1c4fea974d3ed5bb672 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- a/rd/read-gif.c
+++ b/rd/read-gif.c
@@ -14,6 +14,14 @@
}
#else
#define GIF5DATA(x)
+// v4.2 removed PrintGifError in favor of GifErrorString, but with a different
+// prototype than v5
+#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 4) && (GIFLIB_MINOR == 2)
+static void PrintGifError()
+{
+ fprintf(stderr, "GIF library error: %s\n", GifErrorString());
+}
+#endif
#define PrintGifError(e) PrintGifError()
#define DGifOpenFileHandle(x,e) DGifOpenFileHandle(x)
#define DGifCloseFile(x,e) DGifCloseFile(x)
|