Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
graphics
metapixel
metapixel-1.0.2-giflib-5.0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File metapixel-1.0.2-giflib-5.0.patch of Package metapixel
--- rwimg/rwgif.c.orig +++ rwimg/rwgif.c @@ -29,6 +29,13 @@ #include <gif_lib.h> #include <string.h> +// From https://github.com/Automattic/node-canvas/issues/440 (2017-05-15) +#if GIFLIB_MAJOR > 5 || GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 + #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif, NULL) +#else + #define GIF_CLOSE_FILE(gif) DGifCloseFile(gif) +#endif + typedef struct { GifFileType *file; @@ -54,7 +61,7 @@ open_gif_file (const char *filename, int assert(data != 0); - data->file = DGifOpenFileName(filename); + data->file = DGifOpenFileName(filename, NULL); assert(data->file !=0); @@ -137,7 +144,7 @@ open_gif_file (const char *filename, int } free(buffer); - assert(DGifCloseFile(data->file) == GIF_OK); + assert(GIF_CLOSE_FILE(data->file) == GIF_OK); return data; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor