use #if not #ifdef

This commit is contained in:
Joey Hess 2019-09-24 17:32:33 -04:00
parent 779caed3bc
commit 81610b5af0
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -226,7 +226,7 @@ isolateGitConfig a = Utility.Tmp.Dir.withTmpDir "testhome" $ \tmphome -> do
a a
removeDirectoryForCleanup :: FilePath -> IO () removeDirectoryForCleanup :: FilePath -> IO ()
#ifdef MIN_VERSION_directory(1,2,7) #if MIN_VERSION_directory(1,2,7)
removeDirectoryForCleanup = removePathForcibly removeDirectoryForCleanup = removePathForcibly
#else #else
removeDirectoryForCleanup = removeDirectoryRecursive removeDirectoryForCleanup = removeDirectoryRecursive