2013-05-22 16:11:49 +02:00
|
|
|
--- src/image.c
|
|
|
|
+++ src/image.c 2013-05-21 15:49:41.945819346 +0000
|
|
|
|
@@ -7192,7 +7192,11 @@ gif_load (struct frame *f, struct image
|
2013-03-22 17:23:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Open the GIF file. */
|
|
|
|
+#if GIFLIB_MAJOR < 5
|
|
|
|
gif = fn_DGifOpenFileName (SSDATA (file));
|
|
|
|
+#else
|
|
|
|
+ gif = fn_DGifOpenFileName (SSDATA (file), NULL);
|
|
|
|
+#endif
|
|
|
|
if (gif == NULL)
|
|
|
|
{
|
|
|
|
image_error ("Cannot open `%s'", file, Qnil);
|
2013-05-22 16:11:49 +02:00
|
|
|
@@ -7213,7 +7217,11 @@ gif_load (struct frame *f, struct image
|
2013-03-22 17:23:12 +01:00
|
|
|
memsrc.len = SBYTES (specified_data);
|
|
|
|
memsrc.index = 0;
|
|
|
|
|
|
|
|
+#if GIFLIB_MAJOR < 5
|
|
|
|
gif = fn_DGifOpen (&memsrc, gif_read_from_memory);
|
|
|
|
+#else
|
|
|
|
+ gif = fn_DGifOpen (&memsrc, gif_read_from_memory, NULL);
|
|
|
|
+#endif
|
|
|
|
if (!gif)
|
|
|
|
{
|
|
|
|
image_error ("Cannot open memory source `%s'", img->spec, Qnil);
|