From c3499b8ddc357544a58917bfd3846f88caf5d97c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 29 Oct 2021 22:07:27 +0300 Subject: [PATCH] ; 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 6ab9670e4b0..1c31bdd3d95 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 */ -- 2.39.2