aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Bley2013-11-01 10:57:55 +0200
committerEli Zaretskii2013-11-01 10:57:55 +0200
commitac1bf374c2ec182d5f193ed6c27a5a839fdbef54 (patch)
treed4e8d3955d94fc2b05d7fe6f2ab8ad9849f0274a
parentd14c81eec79c626f017e015c7ecf24d7662504bc (diff)
downloademacs-ac1bf374c2ec182d5f193ed6c27a5a839fdbef54.tar.gz
emacs-ac1bf374c2ec182d5f193ed6c27a5a839fdbef54.zip
Support libpng DLLs of versions beyond 1.4.x on MS-Windows.
lisp/term/w32-win.el (dynamic-library-alist): Support versions of libpng beyond 1.4.x.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/term/w32-win.el11
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index eecc10efbb9..03819e49d29 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,7 @@
3 * term/w32-win.el (dynamic-library-alist): Support newer versions 3 * term/w32-win.el (dynamic-library-alist): Support newer versions
4 of libjpeg starting with v7: look only for the DLL from the 4 of libjpeg starting with v7: look only for the DLL from the
5 version against which Emacs was built. 5 version against which Emacs was built.
6 Support versions of libpng beyond 1.4.x.
6 7
72013-11-01 Bozhidar Batsov <bozhidar@batsov.com> 82013-11-01 Bozhidar Batsov <bozhidar@batsov.com>
8 9
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index bf5f1b6435c..ab314127cc4 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -216,8 +216,15 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
216 ;; the version we were compiled against. (If we were compiled 216 ;; the version we were compiled against. (If we were compiled
217 ;; without PNG support, libpng-version's value is -1.) 217 ;; without PNG support, libpng-version's value is -1.)
218 (if (>= libpng-version 10400) 218 (if (>= libpng-version 10400)
219 ;; libpng14-14.dll is libpng 1.4.3 from GTK+ 219 (let ((major (/ libpng-version 10000))
220 '(png "libpng14-14.dll" "libpng14.dll") 220 (minor (mod (/ libpng-version 100) 10)))
221 (list 'png
222 ;; libpngXY.dll is the default name when building
223 ;; with CMake or from a lpngXYY tarball on w32,
224 ;; libpngXY-XY.dll is the DLL name when building
225 ;; with libtool / autotools
226 (format "libpng%d%d.dll" major minor)
227 (format "libpng%d%d-%d%d.dll" major minor major minor)))
221 '(png "libpng12d.dll" "libpng12.dll" "libpng3.dll" "libpng.dll" 228 '(png "libpng12d.dll" "libpng12.dll" "libpng3.dll" "libpng.dll"
222 ;; these are libpng 1.2.8 from GTK+ 229 ;; these are libpng 1.2.8 from GTK+
223 "libpng13d.dll" "libpng13.dll")) 230 "libpng13d.dll" "libpng13.dll"))