[commit: packages/haskeline] master: Fix Linux to Windows cross-compile (194b201)

git at git.haskell.org git at git.haskell.org
Sat Nov 28 17:42:54 UTC 2015


Repository : ssh://git@git.haskell.org/haskeline

On branch  : master
Link       : http://git.haskell.org/packages/haskeline.git/commitdiff/194b201b2bd3eaf003fa89ca8a566f518f0e1142

>---------------------------------------------------------------

commit 194b201b2bd3eaf003fa89ca8a566f518f0e1142
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Thu Oct 29 09:11:38 2015 +1100

    Fix Linux to Windows cross-compile
    
    The #include of <Shlobj.h> doesn't work when cross-compiling from
    Linux to Windows because the Linux file system is case sensitive and
    on Linux the file is <shlobj.h>. This change should not affect Windows
    builds because the Windows file system is case insensitive.


>---------------------------------------------------------------

194b201b2bd3eaf003fa89ca8a566f518f0e1142
 System/Console/Haskeline/Directory.hsc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/Console/Haskeline/Directory.hsc b/System/Console/Haskeline/Directory.hsc
index b2deb22..9eb0952 100644
--- a/System/Console/Haskeline/Directory.hsc
+++ b/System/Console/Haskeline/Directory.hsc
@@ -19,7 +19,7 @@ import qualified System.Directory
 #endif
 
 #include <windows.h>
-#include <Shlobj.h>
+#include <shlobj.h>
 
 ##if defined(i386_HOST_ARCH)
 ## define WINDOWS_CCONV stdcall



More information about the ghc-commits mailing list