[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102744: Don't use png_jmpbuf, it doe
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102744: Don't use png_jmpbuf, it doesn't work with dynamic loading. |
Date: |
Mon, 03 Jan 2011 21:35:59 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102744
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Mon 2011-01-03 21:35:59 +0200
message:
Don't use png_jmpbuf, it doesn't work with dynamic loading.
image.c (png_jmpbuf): Remove definition.
(my_png_error, png_load): Don't use png_jmpbuf.
modified:
src/ChangeLog
src/image.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-01-02 20:28:40 +0000
+++ b/src/ChangeLog 2011-01-03 19:35:59 +0000
@@ -1,3 +1,8 @@
+2011-01-03 Eli Zaretskii <address@hidden>
+
+ * image.c (png_jmpbuf): Remove definition.
+ (my_png_error, png_load): Don't use png_jmpbuf.
+
2011-01-02 Eli Zaretskii <address@hidden>
* keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
=== modified file 'src/image.c'
--- a/src/image.c 2011-01-02 20:28:40 +0000
+++ b/src/image.c 2011-01-03 19:35:59 +0000
@@ -5528,12 +5528,6 @@
#endif /* HAVE_NTGUI */
-/* libpng before 1.4.0 didn't have png_jmpbuf; v1.4.0 and later
- deprecate direct access to png_ptr fields. */
-#ifndef png_jmpbuf
-# define png_jmpbuf(PTR) ((PTR)->jmpbuf)
-#endif
-
/* Error and warning handlers installed when the PNG library
is initialized. */
@@ -5544,7 +5538,7 @@
/* Avoid compiler warning about deprecated direct access to
png_ptr's fields in libpng versions 1.4.x. */
image_error ("PNG error: %s", build_string (msg), Qnil);
- longjmp (png_jmpbuf (png_ptr), 1);
+ longjmp (png_ptr->jmpbuf, 1);
}
@@ -5706,7 +5700,7 @@
/* Set error jump-back. We come back here when the PNG library
detects an error. */
- if (setjmp (png_jmpbuf (png_ptr)))
+ if (setjmp (png_ptr->jmpbuf))
{
error:
if (png_ptr)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102744: Don't use png_jmpbuf, it doesn't work with dynamic loading.,
Eli Zaretskii <=