[commit: packages/process] master: Fix CPP usage (f995e84)
git at git.haskell.org
git at git.haskell.org
Wed Jul 19 21:16:55 UTC 2017
Repository : ssh://git@git.haskell.org/process
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f995e843e2c5a771b1bcd8e9c68078387d7cefce/process
>---------------------------------------------------------------
commit f995e843e2c5a771b1bcd8e9c68078387d7cefce
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date: Sun Oct 23 12:55:32 2016 +1100
Fix CPP usage
The code `#if WINDOWS` works but is not really correct. GHC HEAD now
has a `-Wcpp-undef` warning that we would like to turn on and hence
need this fixed.
>---------------------------------------------------------------
f995e843e2c5a771b1bcd8e9c68078387d7cefce
System/Process/Internals.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/System/Process/Internals.hs b/System/Process/Internals.hs
index c4d5be3..af42009 100644
--- a/System/Process/Internals.hs
+++ b/System/Process/Internals.hs
@@ -50,7 +50,7 @@ import System.Posix.Internals (FD)
import System.Process.Common
-#if WINDOWS
+#ifdef WINDOWS
import System.Process.Windows
#else
import System.Process.Posix
More information about the ghc-commits
mailing list