remove msvcrt and kernel32 from extra-libraries
[ghc-base.git] / cbits / PrelIOUtils.c
index 412c8b8..de7fed4 100644 (file)
@@ -5,8 +5,16 @@
  */
 
 #define INLINE
+
+#ifdef __GLASGOW_HASKELL__
+# include "Rts.h"
+#endif
+
 #include "HsBase.h"
 
+#ifdef __GLASGOW_HASKELL__
+# include "RtsMessages.h"
+
 void errorBelch2(const char*s, char *t)
 {
     errorBelch(s,t);
@@ -16,3 +24,4 @@ void debugBelch2(const char*s, char *t)
 {
     debugBelch(s,t);
 }
+#endif /* __GLASGOW_HASKELL__ */