Skip to content

Commit 299546b

Browse files
author
Mitsutoshi Aoe
committed
Switch from stdcall to ccall on Windows
Otherwise GHC compliains: C:\projects\threadscope\GUI\GtkExtras.hs:94:1: warning: [-Wunsupported-calling-conventions] * the 'stdcall' calling convention is unsupported on this platform, treating as ccall * When checking declaration: foreign import stdcall unsafe "static shlobj.h ShellExecuteA" c_ShellExecuteA :: Ptr () -> CString -> CString -> CString -> CString -> CInt -> IO CInt
1 parent 114b5d4 commit 299546b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GUI/GtkExtras.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ launchProgramForURI uri = do
9494
1 -- SW_SHOWNORMAL
9595
return True
9696

97-
foreign import stdcall unsafe "shlobj.h ShellExecuteA"
97+
foreign import ccall unsafe "shlobj.h ShellExecuteA"
9898
c_ShellExecuteA :: Ptr () -- HWND hwnd
9999
-> CString -- LPCTSTR lpOperation
100100
-> CString -- LPCTSTR lpFile

0 commit comments

Comments
 (0)