Minor fixes for cygwin

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3580 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-01-20 13:28:28 +00:00
parent d4f2f56b87
commit 205e47ed25
3 changed files with 81 additions and 91 deletions

View file

@ -104,14 +104,10 @@ static BOOL debug = NO;
return interval;
#else
TIME_ZONE_INFORMATION sys_time_zone;
SYSTEMTIME sys_time;
NSCalendarDate *d;
NSTimeInterval t;
// Get the time zone information
GetTimeZoneInformation(&sys_time_zone);
// Get the system time
GetLocalTime(&sys_time);
@ -123,10 +119,10 @@ static BOOL debug = NO;
hour: sys_time.wHour
minute: sys_time.wMinute
second: sys_time.wSecond
timeZone: [NSTimeZone defaultTimeZone]];
timeZone: [NSTimeZone localTimeZone]];
t = [d timeIntervalSinceReferenceDate];
[d release];
return t;
return t + sys_time.wMilliseconds / 1000.0;
#endif /* __WIN32__ */
}