summaryrefslogtreecommitdiff
blob: a5ce023f57346f064b0be97e687082ae8aa29f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- gracer-0.1.5/common/gr_texture.c
+++ gracer-0.1.5/common/gr_texture.c
@@ -274,7 +274,11 @@
   int index;
   int width, height;
 
+#if (GIFLIB_MAJOR >= 5&& !(GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0))
+  file = DGifOpenFileName (filename, &i);
+#else
   file = DGifOpenFileName (filename);
+#endif
   if (!file)
     return -1;