[commit: haskeline] ghc-7.6: Fix a use of 'stdcall' so that it builds on Win64 (6529185)

Ian Lynagh igloo at earth.li
Fri Jan 25 13:56:55 CET 2013


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

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/65291856a16e13b404d4bbdeba8e374082ff5fa1

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

commit 65291856a16e13b404d4bbdeba8e374082ff5fa1
Author: Ian Lynagh <igloo at earth.li>
Date:   Fri Jan 25 12:33:59 2013 +0000

    Fix a use of 'stdcall' so that it builds 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