/* -----------------------------------------------------------------------------
- * $Id: Itimer.c,v 1.33 2003/03/28 23:46:39 sof Exp $
+ * $Id: Itimer.c,v 1.34 2003/03/29 00:00:41 sof Exp $
*
* (c) The GHC Team, 1995-1999
*
* to support. So much for standards.
*/
#include "Rts.h"
-#if !defined(mingw32_TARGET_OS) /* to the end */
#include "RtsFlags.h"
#include "Timer.h"
#include "Itimer.h"
tv.tv_usec * TICK_FREQUENCY / 1000000);
}
-#endif /* !mingw32_TARGET_OS */
ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
ALL_DIRS += win32
+EXCLUDED_SRCS += Itimer.c Select.c Signals.c
endif
ifneq "$(DLLized)" "YES"
/* -----------------------------------------------------------------------------
- * $Id: Select.c,v 1.26 2003/02/22 06:13:41 sof Exp $
+ * $Id: Select.c,v 1.27 2003/03/29 00:00:41 sof Exp $
*
* (c) The GHC Team 1995-2002
*
/* #include "PosixSource.h" */
#include "Rts.h"
-#ifndef mingw32_TARGET_OS
-/* to the end */
-
#include "Schedule.h"
#include "RtsUtils.h"
#include "RtsFlags.h"
}
}
#endif
-
-#endif /* !mingw_TARGET_OS */
/* -----------------------------------------------------------------------------
- * $Id: Signals.c,v 1.35 2003/03/25 17:15:07 sof Exp $
+ * $Id: Signals.c,v 1.36 2003/03/29 00:00:41 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
#include <stdlib.h>
-#ifndef mingw32_TARGET_OS
-
#ifndef PAR
/* SUP: The type of handlers is a little bit, well, doubtful... */
ieee_set_fp_control(0);
#endif
}
-#else /* mingw32_TARGET_OS */
-
-// Handle all signals in the current thread.
-// Called from Capability.c whenever the main capability is granted to a thread
-// and in installDefaultHandlers
-void
-handleSignalsInThisThread()
-{
-#ifdef RTS_SUPPORTS_THREADS
-#error "handleSignalsInThread needs to be sorted out for MinGW32"
- /* signalHandlingThread = pthread_self();*/
-#endif
-}
-
-#endif /* mingw32_TARGET_OS */
/* -----------------------------------------------------------------------------
- * $Id: Signals.h,v 1.9 2003/01/25 15:54:50 wolfgang Exp $
+ * $Id: Signals.h,v 1.10 2003/03/29 00:00:43 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
extern void markSignalHandlers (evac_fn evac);
extern void initDefaultHandlers(void);
+#if !defined(mingw32_TARGET_OS)
extern void handleSignalsInThisThread(void);
+#else
+#define handleSignalsInThisThread() /* nothing */
+#endif
#else
#include "Schedule.h"
#include "Timer.h"
-#ifndef mingw32_TARGET_OS
+#if !defined(mingw32_TARGET_OS)
#include "Itimer.h"
#else
#include "win32/Ticker.h"