X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSignals.h;h=93cc88957de76cab31fc9256ff1721ac09cb15df;hb=44886baea4f683939c15cf2d16f1387f4c9df048;hp=4db8086e1bdfd2cd59082f36ea80dd87c1039f4d;hpb=af13609607da81e7837a7c7c598de82452363ab5;p=ghc-hetmet.git diff --git a/ghc/rts/Signals.h b/ghc/rts/Signals.h index 4db8086..93cc889 100644 --- a/ghc/rts/Signals.h +++ b/ghc/rts/Signals.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Signals.h,v 1.9 2003/01/25 15:54:50 wolfgang Exp $ + * $Id: Signals.h,v 1.12 2003/10/20 17:15:29 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -7,7 +7,8 @@ * * ---------------------------------------------------------------------------*/ -#ifndef PAR +#if !defined(PAR) && !defined(mingw32_TARGET_OS) +#define RTS_USER_SIGNALS 1 extern StgPtr pending_handler_buf[]; extern StgPtr *next_pending_handler; @@ -29,8 +30,12 @@ extern void initDefaultHandlers(void); extern void handleSignalsInThisThread(void); -#else +#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 */