fixup #if 0 stubs to use #ifndef mingw32_HOST_OS
That's needed in files used to build the configure program. For the other files, I'm keeping my __WINDOWS__ define, as I find that much easier to type. I may search and replace it to use the mingw32_HOST_OS thing later.
This commit is contained in:
parent
6c74a42cc6
commit
763cbda14f
23 changed files with 48 additions and 48 deletions
|
@ -10,7 +10,7 @@
|
|||
module Utility.Directory where
|
||||
|
||||
import System.IO.Error
|
||||
#if 0
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Files
|
||||
#endif
|
||||
import System.Directory
|
||||
|
@ -61,7 +61,7 @@ dirContentsRecursive' (dir:dirs) = unsafeInterleaveIO $ do
|
|||
{- Moves one filename to another.
|
||||
- First tries a rename, but falls back to moving across devices if needed. -}
|
||||
moveFile :: FilePath -> FilePath -> IO ()
|
||||
#if 0
|
||||
#ifndef mingw32_HOST_OS
|
||||
moveFile src dest = tryIO (rename src dest) >>= onrename
|
||||
where
|
||||
onrename (Right _) = noop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue