From db04688faa20f3576257c0fe41752ec435beab9a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 Feb 2017 00:05:25 -0800 Subject: Import Upstream version 5c3 --- continue.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'continue.h') diff --git a/continue.h b/continue.h index 3c213e0..e917314 100644 --- a/continue.h +++ b/continue.h @@ -64,9 +64,16 @@ # else /* ndef _CRAY1 */ # include -# define jump_buf jmp_buf -# define setjump setjmp -# define longjump longjmp +# include +# ifdef SIG_UNBLOCK +# define jump_buf sigjmp_buf +# define setjump(buf) sigsetjmp((buf), !0) +# define longjump siglongjmp +# else +# define jump_buf jmp_buf +# define setjump setjmp +# define longjump longjmp +# endif /* ndef HAVE_SIGSETJMP */ # endif /* ndef _CRAY1 */ #endif /* ndef vax */ @@ -83,6 +90,9 @@ #ifdef THINK_C # define SHORT_ALIGN #endif +#ifdef __MWERKS__ +# define SHORT_ALIGN +#endif #ifdef MSDOS # define SHORT_ALIGN #endif -- cgit v1.2.3