move gc_alloc_block to make it visible on 32-bit
[ghc.git] / 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