[project @ 2002-11-20 14:09:42 by simonmar]
[ghc-hetmet.git] / ghc / includes / Rts.h
index f298fa3..565b035 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Rts.h,v 1.16 2002/01/31 10:48:55 sof Exp $
+ * $Id: Rts.h,v 1.19 2002/07/18 06:07:37 sof Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -23,14 +23,6 @@ extern "C" {
    RTS Exit codes
    -------------------------------------------------------------------------- */
 
-#if ! defined(EXIT_SUCCESS) || ! defined(EXIT_FAILURE)
-/* "stdlib.h" should have defined these; but at least
-   on SunOS 4.1.3, this is not so.
-*/
-#define EXIT_SUCCESS 0
-#define EXIT_FAILURE 1
-#endif
-
 /* 255 is allegedly used by dynamic linkers to report linking failure */
 #define EXIT_INTERNAL_ERROR 254
 #define EXIT_DEADLOCK       253
@@ -45,6 +37,14 @@ extern "C" {
 /* declarations for runtime flags/values */
 #define MAX_RTS_ARGS 32
 
+#ifdef _WIN32
+/* On the yucky side..suppress -Wmissing-declarations warnings when
+ * including <windows.h>
+ */
+extern void* GetCurrentFiber ( void );
+extern void* GetFiberData ( void );
+#endif
+
 /* -----------------------------------------------------------------------------
    Assertions and Debuggery
    -------------------------------------------------------------------------- */
@@ -74,13 +74,6 @@ extern "C" {
 #endif
 
 /* -----------------------------------------------------------------------------
-   Derived defines 
-   -------------------------------------------------------------------------- */
-#if defined(SMP) || defined(THREADED_RTS)
-#define RTS_SUPPORTS_THREADS 1
-#endif
-
-/* -----------------------------------------------------------------------------
    Attributes
    -------------------------------------------------------------------------- */