[commit: haskeline] ghc-head: Fix build on Win64 (40bcd6a)

Ian Lynagh igloo at earth.li
Wed Jul 3 17:20:35 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/haskeline

On branch  : ghc-head

http://hackage.haskell.org/trac/ghc/changeset/40bcd6ac30577d1d240166674d1e328ac52c1fd5

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

commit 40bcd6ac30577d1d240166674d1e328ac52c1fd5
Author: Ian Lynagh <ian at well-typed.com>
Date:   Tue Jul 2 16:46:53 2013 +0100

    Fix build on Win64

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

 System/Console/Haskeline/Backend/Win32.hsc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/System/Console/Haskeline/Backend/Win32.hsc b/System/Console/Haskeline/Backend/Win32.hsc
index 35c5c77..d54df2c 100644
--- a/System/Console/Haskeline/Backend/Win32.hsc
+++ b/System/Console/Haskeline/Backend/Win32.hsc
@@ -431,7 +431,7 @@ type Handler = DWORD -> IO BOOL
 
 foreign import ccall "wrapper" wrapHandler :: Handler -> IO (FunPtr Handler)
 
-foreign import stdcall "windows.h SetConsoleCtrlHandler" c_SetConsoleCtrlHandler
+foreign import WINDOWS_CCONV "windows.h SetConsoleCtrlHandler" c_SetConsoleCtrlHandler
     :: FunPtr Handler -> BOOL -> IO BOOL
 
 -- sets the tv to True when ctrl-c is pressed.





More information about the ghc-commits mailing list