[project @ 2005-02-01 00:52:20 by ross]
[ghc-base.git] / GHC / ConsoleHandler.hs
index 70128b4..8a9e2e0 100644 (file)
@@ -1,4 +1,4 @@
-{-# OPTIONS -cpp #-}
+{-# OPTIONS_GHC -cpp #-}
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  GHC.ConsoleHandler
@@ -13,8 +13,9 @@
 -- 
 -----------------------------------------------------------------------------
 module GHC.ConsoleHandler
-#ifndef mingw32_TARGET_OS
+#ifndef mingw32_HOST_OS
        where
+import Prelude -- necessary to get dependencies right
 #else /* whole file */
        ( Handler(..)
        , installHandler
@@ -25,6 +26,8 @@ module GHC.ConsoleHandler
 #include "Signals.h"
 -}
 
+import Prelude -- necessary to get dependencies right
+
 import Foreign
 import Foreign.C
 
@@ -85,4 +88,4 @@ installHandler handler =
 
 foreign import ccall unsafe "Signals.h stg_InstallConsoleEvent" 
   rts_installHandler :: CInt -> Ptr (StablePtr (CInt -> IO ())) -> IO CInt
-#endif /* mingw32_TARGET_OS */
+#endif /* mingw32_HOST_OS */