X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FDirectory%2FInternals.hs;h=761b7714d7e19b04bbd853fae422fb99528c89af;hb=ec3ba94b254bd444e7a1c560c1d91c4879948c69;hp=7c7f8a5640bb7e23a9bb8890900f49be1191c9d4;hpb=7d469fba03085e1538f7b33227a3b69fc68d037f;p=ghc-base.git diff --git a/System/Directory/Internals.hs b/System/Directory/Internals.hs index 7c7f8a5..761b771 100644 --- a/System/Directory/Internals.hs +++ b/System/Directory/Internals.hs @@ -91,7 +91,7 @@ pathParents :: FilePath -> [FilePath] pathParents p = root'' : map ((++) root') (dropEmptyPath $ inits path') where -#ifdef mingw32_TARGET_OS +#ifdef mingw32_HOST_OS (root,path) = case break (== ':') p of (path, "") -> ("",path) (root,_:path) -> (root++":",path) @@ -150,7 +150,7 @@ isPathSeparator ch = ch == pathSeparator || ch == '/' -- separator is a slash (@\"\/\"@) on Unix and Macintosh, and a backslash -- (@\"\\\"@) on the Windows operating system. pathSeparator :: Char -#ifdef mingw32_TARGET_OS +#ifdef mingw32_HOST_OS pathSeparator = '\\' #else pathSeparator = '/' @@ -161,7 +161,7 @@ pathSeparator = '/' -- environment variables. The separator is a colon (@\":\"@) on Unix and -- Macintosh, and a semicolon (@\";\"@) on the Windows operating system. searchPathSeparator :: Char -#ifdef mingw32_TARGET_OS +#ifdef mingw32_HOST_OS searchPathSeparator = ';' #else searchPathSeparator = ':' @@ -171,7 +171,7 @@ searchPathSeparator = ':' -- | Extension for executable files -- (typically @\"\"@ on Unix and @\"exe\"@ on Windows or OS\/2) exeExtension :: String -#ifdef mingw32_TARGET_OS +#ifdef mingw32_HOST_OS exeExtension = "exe" #else exeExtension = ""