aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 1bb22655..3cd6d5f7 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -39,11 +39,14 @@ import System.IO
import System.Exit
import System.Environment
import System.FilePath
-#ifdef IN_GHC_TREE
+
+#if defined(mingw32_HOST_OS)
import Foreign
import Foreign.C
import Data.Int
-#else
+#endif
+
+#ifndef IN_GHC_TREE
import GHC.Paths
#endif