aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorEli Zaretskii2012-09-15 11:03:11 +0300
committerEli Zaretskii2012-09-15 11:03:11 +0300
commit7105c8cbf3a3226701e4d2ecb0b9c2d207648a98 (patch)
treeea1d91884504460ebb6ac7cad3efabdc41d956e5 /src/image.c
parent0328b6de4a92676b4ad4616095ce19a4f51d1c4d (diff)
downloademacs-7105c8cbf3a3226701e4d2ecb0b9c2d207648a98.tar.gz
emacs-7105c8cbf3a3226701e4d2ecb0b9c2d207648a98.zip
Fix MS-Windows build broken by 2012-09-15T07:06:56Z!eggert@cs.ucla.edu, completing fix for bug #12446.
src/w32xfns.c: src/w32uniscribe.c: src/w32term.c: src/w32select.c: src/w32reg.c: src/w32proc.c: src/w32menu.c: src/w32inevt.c: src/w32heap.c: src/w32font.c: src/w32fns.c: src/w32console.c: src/w32.c: src/w16select.c: Remove inclusion of setjmp.h, as it is now included by lisp.h. This completes removal of setjmp.h inclusion erroneously announced in the previous commit. src/lisp.h [!HAVE__SETJMP, !HAVE_SIGSETJMP]: Make the commentary more accurate. src/image.c (_setjmp) [!HAVE__SETJMP]: Define only if 'setjmp' is not defined as a macro. The latter happens on MS-Windows.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c
index 6803dbe8f00..02151c500cc 100644
--- a/src/image.c
+++ b/src/image.c
@@ -5516,9 +5516,13 @@ init_png_functions (Lisp_Object libraries)
5516 5516
5517/* Possibly inefficient/inexact substitutes for _setjmp and _longjmp. 5517/* Possibly inefficient/inexact substitutes for _setjmp and _longjmp.
5518 Do not use sys_setjmp, as PNG supports only jmp_buf. The _longjmp 5518 Do not use sys_setjmp, as PNG supports only jmp_buf. The _longjmp
5519 substitute may munge the signal mask, but that should be OK here. */ 5519 substitute may munge the signal mask, but that should be OK here.
5520 MinGW (MS-Windows) uses _setjmp and defines setjmp to _setjmp in
5521 the system header setjmp.h; don't mess up that. */
5520#ifndef HAVE__SETJMP 5522#ifndef HAVE__SETJMP
5521# define _setjmp(j) setjmp (j) 5523# ifndef setjmp
5524# define _setjmp(j) setjmp (j)
5525# endif
5522# define _longjmp longjmp 5526# define _longjmp longjmp
5523#endif 5527#endif
5524 5528