[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c3499b8: ; Fix a recent change in image.c
From: |
Eli Zaretskii |
Subject: |
master c3499b8: ; Fix a recent change in image.c |
Date: |
Fri, 29 Oct 2021 15:08:20 -0400 (EDT) |
branch: master
commit c3499b8ddc357544a58917bfd3846f88caf5d97c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Fix a recent change in image.c
* src/image.c (DGifSavedExtensionToGCB): Define only for GIFLIB >= 5.
---
src/image.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/image.c b/src/image.c
index 6ab9670..1c31bdd 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8277,8 +8277,8 @@ DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char
*));
# else
DEF_DLL_FN (GifFileType *, DGifOpen, (void *, InputFunc, int *));
DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char *, int *));
-DEF_DLL_FN (int, DGifSavedExtensionToGCB, (GifFileType *, int,
- GraphicsControlBlock *));
+DEF_DLL_FN (int, DGifSavedExtensionToGCB,
+ (GifFileType *, int, GraphicsControlBlock *));
# endif
# if HAVE_GIFERRORSTRING
DEF_DLL_FN (char const *, GifErrorString, (int));
@@ -8309,14 +8309,18 @@ init_gif_functions (void)
# undef DGifOpen
# undef DGifOpenFileName
# undef DGifSlurp
-# undef DGifSavedExtensionToGCB
+# if GIFLIB_MAJOR >= 5
+# undef DGifSavedExtensionToGCB
+# endif
# undef GifErrorString
# define DGifCloseFile fn_DGifCloseFile
# define DGifOpen fn_DGifOpen
# define DGifOpenFileName fn_DGifOpenFileName
# define DGifSlurp fn_DGifSlurp
-# define DGifSavedExtensionToGCB fn_DGifSavedExtensionToGCB
+# if GIFLIB_MAJOR >= 5
+# define DGifSavedExtensionToGCB fn_DGifSavedExtensionToGCB
+# endif
# define GifErrorString fn_GifErrorString
# endif /* WINDOWSNT */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master c3499b8: ; Fix a recent change in image.c,
Eli Zaretskii <=