X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FCPUTime.hsc;h=3309c2c7454542f7a53b90329adff7880b517243;hb=2a5112bdcf1fb97caeb87c1ba76f49957d86d201;hp=603afce7986807fc21c301443ed052c3257d3559;hpb=2570f264ed329f04017d507250494eb0ab680d64;p=ghc-base.git diff --git a/System/CPUTime.hsc b/System/CPUTime.hsc index 603afce..3309c2c 100644 --- a/System/CPUTime.hsc +++ b/System/CPUTime.hsc @@ -120,8 +120,8 @@ foreign import ccall unsafe times :: Ptr CTms -> IO CClock type FILETIME = () type HANDLE = () -- need proper Haskell names (initial lower-case character) -foreign import ccall unsafe "GetCurrentProcess" getCurrentProcess :: IO (Ptr HANDLE) -foreign import ccall unsafe "GetProcessTimes" getProcessTimes :: Ptr HANDLE -> Ptr FILETIME -> Ptr FILETIME -> Ptr FILETIME -> Ptr FILETIME -> IO CInt +foreign import stdcall unsafe "GetCurrentProcess" getCurrentProcess :: IO (Ptr HANDLE) +foreign import stdcall unsafe "GetProcessTimes" getProcessTimes :: Ptr HANDLE -> Ptr FILETIME -> Ptr FILETIME -> Ptr FILETIME -> Ptr FILETIME -> IO CInt #endif /* not _WIN32 */ #endif /* __GLASGOW_HASKELL__ */