Patch from kili@outback.escape.de, who says:
Stg.h must be included before HsBase.h, because the latter contains
function definitions causing older versions of gcc (3.3.5 in my
case) to bail out with "error: global register variable follows a
function definition" on Regs.h, which is included by Stg.h.
*/
#define INLINE
-#include "HsBase.h"
+
#ifdef __GLASGOW_HASKELL__
# include "Stg.h"
+#endif
+
+#include "HsBase.h"
+
+#ifdef __GLASGOW_HASKELL__
# include "RtsMessages.h"
void errorBelch2(const char*s, char *t)