/* -----------------------------------------------------------------------------
- * $Id: Signals.h,v 1.8 2002/09/17 12:11:45 simonmar Exp $
+ * $Id: Signals.h,v 1.12 2003/10/20 17:15:29 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* ---------------------------------------------------------------------------*/
-#ifndef PAR
+#if !defined(PAR) && !defined(mingw32_TARGET_OS)
+#define RTS_USER_SIGNALS 1
extern StgPtr pending_handler_buf[];
extern StgPtr *next_pending_handler;
extern void markSignalHandlers (evac_fn evac);
extern void initDefaultHandlers(void);
-#else
+extern void handleSignalsInThisThread(void);
+#elif defined(mingw32_TARGET_OS)
+#define RTS_USER_SIGNALS 1
+#include "win32/ConsoleHandler.h"
+
+#else /* PAR */
#define signals_pending() (rtsFalse)
+#define handleSignalsInThisThread() /* nothing */
#endif /* PAR */