* included in the distribution.
*
* $RCSfile: connect.h,v $
- * $Revision: 1.42 $
- * $Date: 2000/05/12 11:59:38 $
+ * $Revision: 1.44 $
+ * $Date: 2000/06/28 10:42:17 $
* ------------------------------------------------------------------------*/
/* --------------------------------------------------------------------------
extern Void liftControl ( Int );
extern Void substitution ( Int );
extern Void typeChecker ( Int );
-extern Void interface ( Int );
+extern Void interfayce ( Int );
extern Void storage ( Int );
to get the signal mask to a sane state each time.
*/
#include <signal.h>
+
+#if !defined(mingw32_TARGET_OS)
+
#define setHandler(bh) { sigset_t mask; \
signal(SIGINT,bh); \
sigemptyset(&mask); \
sigprocmask(SIG_UNBLOCK, &mask, NULL); \
}
+#else
+
+#define setHandler(bh) { void* old_hdlr = signal(SIGINT,bh);\
+ if (old_hdlr == SIG_ERR) internal("setHandler"); \
+ }
+
+#endif /* !defined(mingw32_TARGET_OS) */
/*---------------------------------------------------------------------------
* Environment variables and the registry