summaryrefslogtreecommitdiff
blob: 2d62b8c2082faac342e0f11a21c826b3815613b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- gracer-0.1.5.orig/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;