[project @ 2002-07-15 08:41:02 by simonmar]
authorsimonmar <unknown>
Mon, 15 Jul 2002 08:41:02 +0000 (08:41 +0000)
committersimonmar <unknown>
Mon, 15 Jul 2002 08:41:02 +0000 (08:41 +0000)
Static closures are not declared 'const' in generated code, so don't
declare them 'const' in here.

Spotted-by: GCC 3.1

ghc/includes/RtsAPI.h

index 20c9683..33e48fb 100644 (file)
@@ -1,5 +1,5 @@
 /* ----------------------------------------------------------------------------
- * $Id: RtsAPI.h,v 1.27 2002/06/27 15:38:58 simonmar Exp $
+ * $Id: RtsAPI.h,v 1.28 2002/07/15 08:41:02 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -122,8 +122,8 @@ rts_checkSchedStatus ( char* site, SchedulerStatus rc);
    These are used by foreign export and foreign import "wrapper" stubs.
    ----------------------------------------------------------------------- */
 
-extern DLL_IMPORT const StgClosure GHCziTopHandler_runIO_closure;
-extern DLL_IMPORT const StgClosure GHCziTopHandler_runNonIO_closure;
+extern DLL_IMPORT StgClosure GHCziTopHandler_runIO_closure;
+extern DLL_IMPORT StgClosure GHCziTopHandler_runNonIO_closure;
 #define runIO_closure            (&GHCziTopHandler_runIO_closure)
 #define runNonIO_closure         (&GHCziTopHandler_runNonIO_closure)