lots of portability changes (#1405)
[ghc-hetmet.git] / compiler / main / Packages.lhs
index d5cfbd1..749b91e 100644 (file)
@@ -54,7 +54,7 @@ import Maybes         ( expectJust, MaybeErr(..) )
 import Panic
 import Outputable
 
-#if __GLASGOW_HASKELL__ < 603
+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ < 603
 import Compat.Directory        ( getAppUserDataDirectory )
 #endif