src/share/native/sun/awt/image/jpeg/jpegdecoder.c
Print this page
rev 9959 : 8026385: [macosx] (awt) setjmp/longjmp changes the process signal mask on OS X
Reviewed-by:
Contributed-by: David DeHaven <david.dehaven@oracle.com>
@@ -45,10 +45,16 @@
#undef boolean
#undef FAR
#include <jpeglib.h>
#include "jerror.h"
+#ifdef __APPLE__
+/* use setjmp/longjmp versions that do not save/restore the signal mask */
+#define setjmp _setjmp
+#define longjmp _longjmp
+#endif
+
/* The method IDs we cache. Note that the last two belongs to the
* java.io.InputStream class.
*/
static jmethodID sendHeaderInfoID;
static jmethodID sendPixelsByteID;