X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRetainerProfile.c;h=4fca19cf2fb87872d99e5705fdb450274d785e87;hb=7effbbbbdfe7eb05c6402fa9337e358e7e9fadde;hp=adec3fcfaa4d369e5a89113df643373def3e6cf7;hpb=948c01bdb7f42504487a624b229137694871efd0;p=ghc-hetmet.git diff --git a/rts/RetainerProfile.c b/rts/RetainerProfile.c index adec3fc..4fca19c 100644 --- a/rts/RetainerProfile.c +++ b/rts/RetainerProfile.c @@ -25,7 +25,7 @@ #include "Schedule.h" #include "Printer.h" #include "Weak.h" -#include "Sanity.h" +#include "sm/Sanity.h" #include "Profiling.h" #include "Stats.h" #include "ProfHeap.h" @@ -1278,9 +1278,9 @@ retainSRT (StgClosure **srt, nat srt_bitmap, StgClosure *c, retainer c_child_r) while (bitmap != 0) { if ((bitmap & 1) != 0) { -#ifdef ENABLE_WIN32_DLL_SUPPORT +#if defined(__PIC__) && defined(mingw32_TARGET_OS) if ( (unsigned long)(*srt) & 0x1 ) { - retainClosure(*stgCast(StgClosure**,(stgCast(unsigned long, *srt) & ~0x1)), + retainClosure(* (StgClosure**) ((unsigned long) (*srt) & ~0x1), c, c_child_r); } else { retainClosure(*srt,c,c_child_r);