X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FTime.hsc;h=4db1d61efb6cf0ea20239069437759e517943020;hb=9fa9bc17072a58c0bae2cce4764d38677e96ac29;hp=b281f6d1a645eab68f94a24b05e7b614c5a89d7a;hpb=4fedd8499cfafe90cef23ef9f26c696b044bdc89;p=ghc-base.git diff --git a/System/Time.hsc b/System/Time.hsc index b281f6d..4db1d61 100644 --- a/System/Time.hsc +++ b/System/Time.hsc @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- +-- | -- Module : System.Time -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/core/LICENSE) @@ -8,7 +8,7 @@ -- Stability : provisional -- Portability : portable -- --- $Id: Time.hsc,v 1.10 2002/03/19 10:59:01 simonmar Exp $ +-- $Id: Time.hsc,v 1.12 2002/04/24 16:31:45 simonmar Exp $ -- -- The standard Time library. -- @@ -317,7 +317,8 @@ gmtoff x = (#peek struct tm,tm_gmtoff) x # define tzname _tzname # endif # ifndef mingw32_TARGET_OS -foreign import ccall "&tzname" :: Ptr (Ptr CChar) +foreign import ccall unsafe "&tzname" tzname :: Ptr (Ptr CChar) +foreign import ccall unsafe "timezone" timezone :: Ptr CLong # else foreign import ccall unsafe "__hscore_timezone" timezone :: Ptr CLong foreign import ccall unsafe "__hscore_tzname" tzname :: Ptr (Ptr CChar) @@ -331,7 +332,7 @@ zone x = do # endif /* ! HAVE_TZNAME */ -- Get the offset in secs from UTC, if (struct tm) doesn't supply it. */ -#if defined(mingw32_TARGET_OS) || defined(cygwin32_TARGET_OS) +#if defined(mingw32_TARGET_OS) #define timezone _timezone #endif