move gc_alloc_block to make it visible on 32-bit
authorSimon Marlow <marlowsd@gmail.com>
Mon, 3 Aug 2009 13:28:47 +0000 (13:28 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 3 Aug 2009 13:28:47 +0000 (13:28 +0000)
includes/rts/storage/MBlock.h

index fb5289d..0943d4c 100644 (file)
@@ -24,6 +24,11 @@ extern void *getFirstMBlock(void);
 extern void *getNextMBlock(void *mblock);
 #endif
 
+#ifdef THREADED_RTS
+// needed for HEAP_ALLOCED below
+extern SpinLock gc_alloc_block_sync;
+#endif
+
 /* -----------------------------------------------------------------------------
    The HEAP_ALLOCED() test.
 
@@ -143,10 +148,6 @@ typedef struct {
 
 extern lnat mpc_misses;
 
-#ifdef THREADED_RTS
-extern SpinLock gc_alloc_block_sync;
-#endif
-
 StgBool HEAP_ALLOCED_miss(StgWord mblock, void *p);
 
 INLINE_HEADER