summaryrefslogtreecommitdiffstats
path: root/continue.h
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:25 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:25 -0800
commitdb04688faa20f3576257c0fe41752ec435beab9a (patch)
tree6d638c2e1f65afd5f49d20b2d22ce35bd74705ff /continue.h
parent1edcb9b62a1a520eddae8403c19d841c9b18737f (diff)
downloadscm-db04688faa20f3576257c0fe41752ec435beab9a.tar.gz
scm-db04688faa20f3576257c0fe41752ec435beab9a.zip
Import Upstream version 5c3upstream/5c3
Diffstat (limited to 'continue.h')
-rw-r--r--continue.h16
1 files changed, 13 insertions, 3 deletions
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 <setjmp.h>
-# define jump_buf jmp_buf
-# define setjump setjmp
-# define longjump longjmp
+# include <signal.h>
+# 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