diff options
| author | Eli Zaretskii | 2013-10-10 18:30:21 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-10-10 18:30:21 +0300 |
| commit | a5dab1594a1bbd76ad7fe016268bb91007e5be39 (patch) | |
| tree | 4bb93c7962e2084f7e09ff85621359a2335c9381 /lisp/term | |
| parent | db1386987b5c2ccbfa28d4638b822afc5a8eedbb (diff) | |
| download | emacs-a5dab1594a1bbd76ad7fe016268bb91007e5be39.tar.gz emacs-a5dab1594a1bbd76ad7fe016268bb91007e5be39.zip | |
MS-Windows follow-up to 2013-10-10T01:03:11Z!rgm@gnu.org: support giflib 5.x.
src/image.c (GIFLIB_MAJOR): Define to 4 if undefined.
(GIFLIB_MINOR, GIFLIB_RELEASE): Define to zero if undefined.
(GifErrorString) [GIFLIB_MAJOR >= 5]: Define a function pointer.
(gif_load): For giflib v5.x and later, display the error message
produced by giflib when its functions fail.
(syms_of_image) <Qlibgif_version> [HAVE_NTGUI]: New DEFSYM.
lisp/term/w32-win.el (dynamic-library-alist): Define separate lists
of GIF DLLs for versions before and after 5.0.0 of giflib.
Fixes: debbugs:15531
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/w32-win.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 892ac9749d6..9690a5a7d75 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -223,7 +223,19 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 223 | "libpng13d.dll" "libpng13.dll")) | 223 | "libpng13d.dll" "libpng13.dll")) |
| 224 | '(jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll") | 224 | '(jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll") |
| 225 | '(tiff "libtiff3.dll" "libtiff.dll") | 225 | '(tiff "libtiff3.dll" "libtiff.dll") |
| 226 | '(gif "giflib4.dll" "libungif4.dll" "libungif.dll") | 226 | ;; Versions of giflib 5.0.0 and later changed signatures of |
| 227 | ;; several functions used by Emacs, which makes those versions | ||
| 228 | ;; incompatible with previous ones. We select the correct | ||
| 229 | ;; libraries according to the version of giflib we were | ||
| 230 | ;; compiled against. (If we were compiled without GIF support, | ||
| 231 | ;; libgif-version's value is -1.) | ||
| 232 | (if (>= libgif-version 50000) | ||
| 233 | ;; Yes, giflib 5.x uses 6 as the major version of the API, | ||
| 234 | ;; thus "libgif-6.dll" below (giflib 4.x used 5 as the | ||
| 235 | ;; major API version). | ||
| 236 | ;; giflib5.dll is from the lua-files project. | ||
| 237 | '(gif "libgif-6.dll" "giflib5.dll") | ||
| 238 | '(gif "libgif-5.dll" "giflib4.dll" "libungif4.dll" "libungif.dll")) | ||
| 227 | '(svg "librsvg-2-2.dll") | 239 | '(svg "librsvg-2-2.dll") |
| 228 | '(gdk-pixbuf "libgdk_pixbuf-2.0-0.dll") | 240 | '(gdk-pixbuf "libgdk_pixbuf-2.0-0.dll") |
| 229 | '(glib "libglib-2.0-0.dll") | 241 | '(glib "libglib-2.0-0.dll") |