From 3ccd3959a9b8712f67bf068be04b4deab6443f5e Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 15 Jul 2002 08:41:02 +0000 Subject: [PATCH] [project @ 2002-07-15 08:41:02 by simonmar] 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghc/includes/RtsAPI.h b/ghc/includes/RtsAPI.h index 20c9683..33e48fb 100644 --- a/ghc/includes/RtsAPI.h +++ b/ghc/includes/RtsAPI.h @@ -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) -- 1.7.10.4