[commit: packages/haskeline] master: Linux to Windows cross-compile fix (Trac #10273) (e9157f4)
git at git.haskell.org
git at git.haskell.org
Fri Apr 17 03:22:32 UTC 2015
Repository : ssh://git@git.haskell.org/haskeline
On branch : master
Link : http://git.haskell.org/packages/haskeline.git/commitdiff/e9157f484fae8964baf8164d220650f64f693b47
>---------------------------------------------------------------
commit e9157f484fae8964baf8164d220650f64f693b47
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date: Sat Apr 11 18:13:55 2015 +1000
Linux to Windows cross-compile fix (Trac #10273)
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 does not affect Windows
builds because the Windows file system is case insensitive (this
change has been built and tested on Windows).
Signed-off-by: Erik de Castro Lopo <erikd at mega-nerd.com>
>---------------------------------------------------------------
e9157f484fae8964baf8164d220650f64f693b47
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