/* -----------------------------------------------------------------------------
- * $Id: Signals.h,v 1.7 2002/03/12 13:57:14 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* ---------------------------------------------------------------------------*/
-#ifndef PAR
+#if !defined(PAR) && !defined(mingw32_HOST_OS)
+#define RTS_USER_SIGNALS 1
extern StgPtr pending_handler_buf[];
extern StgPtr *next_pending_handler;
/* sig_install declared in PrimOps.h */
extern void startSignalHandlers(void);
+extern void markSignalHandlers (evac_fn evac);
extern void initDefaultHandlers(void);
-#else
+extern void handleSignalsInThisThread(void);
+extern void handleSignalsInPrevThread(void);
+#elif defined(mingw32_HOST_OS)
+#define RTS_USER_SIGNALS 1
+#include "win32/ConsoleHandler.h"
+
+#else /* PAR */
#define signals_pending() (rtsFalse)
+#define handleSignalsInThisThread() /* nothing */
#endif /* PAR */