struct _JPEG_error_mgr
{
- struct jpeg_error_mgr pub;
- sigjmp_buf setjmp_buffer;
+ struct jpeg_error_mgr pub;
+ jmp_buf setjmp_buffer;
};
typedef struct _JPEG_error_mgr *emptr;
emptr errmgr;
errmgr = (emptr) cinfo->err;
- siglongjmp(errmgr->setjmp_buffer, 1);
+ longjmp(errmgr->setjmp_buffer, 1);
return;
}
jerr.pub.error_exit = _JPEGFatalErrorHandler;
jerr.pub.emit_message = _JPEGErrorHandler2;
jerr.pub.output_message = _JPEGErrorHandler;
- if (sigsetjmp(jerr.setjmp_buffer, 1))
+ if (sigjmp(jerr.setjmp_buffer))
{
jpeg_destroy_compress(&cinfo);
fclose(f);