diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 8 |
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 | ||