From 40879f5780162cd5fd00ad780a86a185a6527a70 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 16 Jan 2001 11:57:06 +0000 Subject: [PATCH] [project @ 2001-01-16 11:57:06 by simonmar] make the dummy Callable and Returnable static arrays one element long, because some C compilers can't cope with zero-length static arrays. --- ghc/rts/PrimOps.hc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ghc/rts/PrimOps.hc b/ghc/rts/PrimOps.hc index d78f505..27629ce 100644 --- a/ghc/rts/PrimOps.hc +++ b/ghc/rts/PrimOps.hc @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: PrimOps.hc,v 1.67 2001/01/15 09:55:41 sewardj Exp $ + * $Id: PrimOps.hc,v 1.68 2001/01/16 11:57:06 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -27,13 +27,13 @@ classes CCallable and CReturnable don't really exist, but the compiler insists on generating dictionaries containing references to GHC_ZcCCallable_static_info etc., so we provide dummy symbols - for these. + for these. Some C compilers can't cope with zero-length static arrays, + so we have to make these one element long. */ -W_ GHC_ZCCCallable_static_info[0]; -W_ GHC_ZCCReturnable_static_info[0]; - - +StgWord GHC_ZCCCallable_static_info[1]; +StgWord GHC_ZCCReturnable_static_info[1]; + /* ----------------------------------------------------------------------------- Macros for Hand-written primitives. -------------------------------------------------------------------------- */ -- 1.7.10.4