Make appendToRunQueue EXTERN_INLINE rather than INLINE_HEADER
authorSimon Marlow <marlowsd@gmail.com>
Thu, 8 Oct 2009 12:05:27 +0000 (12:05 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 8 Oct 2009 12:05:27 +0000 (12:05 +0000)
Fixes compilation with gcc 4.4

rts/Inlines.c
rts/Schedule.h

index 88cbdd2..fa521e4 100644 (file)
@@ -4,3 +4,4 @@
 #define KEEP_INLINES
 #include "PosixSource.h"
 #include "Rts.h"
+#include "Schedule.h"
index 2dd4acd..5f669b3 100644 (file)
@@ -126,7 +126,10 @@ void performPendingThrowTos (StgTSO *);
  * NOTE: tso->link should be END_TSO_QUEUE before calling this macro.
  * ASSUMES: cap->running_task is the current task.
  */
-INLINE_HEADER void
+EXTERN_INLINE void
+appendToRunQueue (Capability *cap, StgTSO *tso);
+
+EXTERN_INLINE void
 appendToRunQueue (Capability *cap, StgTSO *tso)
 {
     ASSERT(tso->_link == END_TSO_QUEUE);