aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2010-12-31 14:38:06 +0200
committerEli Zaretskii2010-12-31 14:38:06 +0200
commit5be1c984b7839d528cf9e83c68b9055c29bed751 (patch)
treebd7d1c8021a0f2b48edb6e58beb3ce195cbea162 /lisp
parent89dc29d9c8e7957d047e9e9abe95334d70982814 (diff)
downloademacs-5be1c984b7839d528cf9e83c68b9055c29bed751.tar.gz
emacs-5be1c984b7839d528cf9e83c68b9055c29bed751.zip
Fix bug #7716 with PNG image support libraries on Windows.
src/image.c <Qlibpng_version>: New variable. (syms_of_image): Intern and staticpro it. Set its value to the version of PNG library we were compiled with. (my_png_error, png_load): Avoid GCC warnings about direct access to png_ptr->jmpbuf. lisp/term/w32-win.el (image-library-alist): Set up correctly for libpng versions both before and after 1.4.0. admin/nt/README.W32: Update the information about PNG support libraries. nt/INSTALL: Update the information about PNG support libraries.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/w32-win.el30
2 files changed, 24 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dad4c68cffa..c38f6a87b14 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-12-31 Eli Zaretskii <eliz@gnu.org>
2
3 * term/w32-win.el (image-library-alist): Set up correctly for
4 libpng versions both before and after 1.4.0. (Bug#7716)
5
12010-12-25 Eli Zaretskii <eliz@gnu.org> 62010-12-25 Eli Zaretskii <eliz@gnu.org>
2 7
3 * time.el (display-time-mode): Mention display-time-interval in 8 * time.el (display-time-mode): Mention display-time-interval in
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index 1779d1025e0..7bded5b8758 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -200,17 +200,25 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
200 200
201;;; Set default known names for image libraries 201;;; Set default known names for image libraries
202(setq image-library-alist 202(setq image-library-alist
203 '((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll") 203 (list
204 (png "libpng12d.dll" "libpng12.dll" "libpng.dll" 204 '(xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll")
205 ;; these are libpng 1.2.8 from GTK+ 205 ;; Versions of libpng 1.4.x and later are incompatible with
206 "libpng13d.dll" "libpng13.dll") 206 ;; earlier versions. Set up the list of libraries according to
207 (jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll") 207 ;; the version we were compiled against. (If we were compiled
208 (tiff "libtiff3.dll" "libtiff.dll") 208 ;; without PNG support, libpng-version's value is -1.)
209 (gif "giflib4.dll" "libungif4.dll" "libungif.dll") 209 (if (>= libpng-version 10400)
210 (svg "librsvg-2-2.dll") 210 ;; libpng14-14.dll is libpng 1.4.3 from GTK+
211 (gdk-pixbuf "libgdk_pixbuf-2.0-0.dll") 211 '(png "libpng14-14.dll" "libpng14.dll")
212 (glib "libglib-2.0-0.dll") 212 '(png "libpng12d.dll" "libpng12.dll" "libpng3.dll" "libpng.dll"
213 (gobject "libgobject-2.0-0.dll"))) 213 ;; these are libpng 1.2.8 from GTK+
214 "libpng13d.dll" "libpng13.dll"))
215 '(jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll")
216 '(tiff "libtiff3.dll" "libtiff.dll")
217 '(gif "giflib4.dll" "libungif4.dll" "libungif.dll")
218 '(svg "librsvg-2-2.dll")
219 '(gdk-pixbuf "libgdk_pixbuf-2.0-0.dll")
220 '(glib "libglib-2.0-0.dll")
221 '(gobject "libgobject-2.0-0.dll")))
214 222
215;;; multi-tty support 223;;; multi-tty support
216(defvar w32-initialized nil 224(defvar w32-initialized nil