diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2015-11-12 18:35:53 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2015-11-12 18:35:53 +0000 |
commit | c905c203db0c9756a47ecca2243013bfa462026d (patch) | |
tree | 07ffa1194a060dd6c8f50a2046c9b422bc054830 /textproc/gladtex/files/patch-eqn2img.c | |
parent | - Switch to options helpers (diff) |
Allow building with giflib 5.1
PR: 204492
Notes
Notes:
svn path=/head/; revision=401387
Diffstat (limited to 'textproc/gladtex/files/patch-eqn2img.c')
-rw-r--r-- | textproc/gladtex/files/patch-eqn2img.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/textproc/gladtex/files/patch-eqn2img.c b/textproc/gladtex/files/patch-eqn2img.c index 1f7b034e9144..1b663c49a60b 100644 --- a/textproc/gladtex/files/patch-eqn2img.c +++ b/textproc/gladtex/files/patch-eqn2img.c @@ -50,7 +50,19 @@ /* EGifSetGifVersion("89a"); this causes segfault (but is really required for transparency, I think) */ EGifPutScreenDesc(fp, width, height, 256, 255, color_map); -@@ -715,7 +727,7 @@ int to_ps(char *basename, int verbose) { +@@ -649,7 +661,11 @@ int gif_write(png_bytepp image, char *im + return -1; + } + ++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5 ++ EGifCloseFile(fp, NULL); ++#else + EGifCloseFile(fp); ++#endif + + return 0; + } +@@ -715,7 +731,7 @@ int to_ps(char *basename, int verbose) { fprintf(stderr, " -> ps"); cmd = NEW(char, 2*strlen(basename) + 46); |