[project @ 2005-01-28 13:36:25 by simonmar]
[ghc-base.git] / System / Cmd.hs
index 1eaaf78..cf1dc5b 100644 (file)
@@ -83,16 +83,16 @@ rawSystem cmd args = do
 rawSystem cmd args = system (unwords (map translate (cmd:args)))
 
 translate :: String -> String
-#if defined(mingw32_TARGET_OS)
+#if defined(mingw32_HOST_OS)
 -- copied from System.Process (qv)
 translate str = '"' : snd (foldr escape (True,"\"") str)
   where        escape '"'  (b,     str) = (True,  '\\' : '"'  : str)
        escape '\\' (True,  str) = (True,  '\\' : '\\' : str)
        escape '\\' (False, str) = (False, '\\' : str)
        escape c    (b,     str) = (False, c : str)
-#else /* ! mingw32_TARGET_OS */
+#else /* ! mingw32_HOST_OS */
 translate str = '\'' : foldr escape "'" str
   where        escape '\'' cs = '\'' : '\\' : '\'' : '\'' : cs
        escape c    cs = c : cs
-#endif /* ! mingw32_TARGET_OS */
+#endif /* ! mingw32_HOST_OS */
 #endif /* ! __GLASGOW_HASKELL__ */