aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Kangas2021-10-29 20:20:46 +0200
committerStefan Kangas2021-10-29 20:25:42 +0200
commitd9abc45ab53dbed31a5853087a7be21e804d9668 (patch)
tree9b84970ada5812abc784dff4bb41fe91c167fa10 /src
parent4dd8b2c0861f23a70aaff9d55e35efd5de370ed3 (diff)
downloademacs-d9abc45ab53dbed31a5853087a7be21e804d9668.tar.gz
emacs-d9abc45ab53dbed31a5853087a7be21e804d9668.zip
* src/image.c: Fix building with giflib on MS-Windows.
Diffstat (limited to 'src')
-rw-r--r--src/image.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index 376a53e9672..6ab9670e4b0 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8277,6 +8277,8 @@ DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char *));
8277# else 8277# else
8278DEF_DLL_FN (GifFileType *, DGifOpen, (void *, InputFunc, int *)); 8278DEF_DLL_FN (GifFileType *, DGifOpen, (void *, InputFunc, int *));
8279DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char *, int *)); 8279DEF_DLL_FN (GifFileType *, DGifOpenFileName, (const char *, int *));
8280DEF_DLL_FN (int, DGifSavedExtensionToGCB, (GifFileType *, int,
8281 GraphicsControlBlock *));
8280# endif 8282# endif
8281# if HAVE_GIFERRORSTRING 8283# if HAVE_GIFERRORSTRING
8282DEF_DLL_FN (char const *, GifErrorString, (int)); 8284DEF_DLL_FN (char const *, GifErrorString, (int));
@@ -8294,6 +8296,9 @@ init_gif_functions (void)
8294 LOAD_DLL_FN (library, DGifSlurp); 8296 LOAD_DLL_FN (library, DGifSlurp);
8295 LOAD_DLL_FN (library, DGifOpen); 8297 LOAD_DLL_FN (library, DGifOpen);
8296 LOAD_DLL_FN (library, DGifOpenFileName); 8298 LOAD_DLL_FN (library, DGifOpenFileName);
8299# if GIFLIB_MAJOR >= 5
8300 LOAD_DLL_FN (library, DGifSavedExtensionToGCB);
8301# endif
8297# if HAVE_GIFERRORSTRING 8302# if HAVE_GIFERRORSTRING
8298 LOAD_DLL_FN (library, GifErrorString); 8303 LOAD_DLL_FN (library, GifErrorString);
8299# endif 8304# endif
@@ -8304,12 +8309,14 @@ init_gif_functions (void)
8304# undef DGifOpen 8309# undef DGifOpen
8305# undef DGifOpenFileName 8310# undef DGifOpenFileName
8306# undef DGifSlurp 8311# undef DGifSlurp
8312# undef DGifSavedExtensionToGCB
8307# undef GifErrorString 8313# undef GifErrorString
8308 8314
8309# define DGifCloseFile fn_DGifCloseFile 8315# define DGifCloseFile fn_DGifCloseFile
8310# define DGifOpen fn_DGifOpen 8316# define DGifOpen fn_DGifOpen
8311# define DGifOpenFileName fn_DGifOpenFileName 8317# define DGifOpenFileName fn_DGifOpenFileName
8312# define DGifSlurp fn_DGifSlurp 8318# define DGifSlurp fn_DGifSlurp
8319# define DGifSavedExtensionToGCB fn_DGifSavedExtensionToGCB
8313# define GifErrorString fn_GifErrorString 8320# define GifErrorString fn_GifErrorString
8314 8321
8315# endif /* WINDOWSNT */ 8322# endif /* WINDOWSNT */