mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Some MINGW fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6846 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d5f4801280
commit
d26536528b
8 changed files with 283 additions and 263 deletions
|
@ -119,8 +119,9 @@ GSTimeNow()
|
|||
return interval;
|
||||
#else
|
||||
SYSTEMTIME sys_time;
|
||||
NSCalendarDate *d;
|
||||
NSTimeInterval t;
|
||||
#if 0
|
||||
NSCalendarDate *d;
|
||||
|
||||
// Get the system time
|
||||
GetLocalTime(&sys_time);
|
||||
|
@ -136,6 +137,14 @@ GSTimeNow()
|
|||
timeZone: [NSTimeZone localTimeZone]];
|
||||
t = otherTime(d);
|
||||
RELEASE(d);
|
||||
#else
|
||||
/*
|
||||
* Get current GMT time, convert to NSTimeInterval since reference date,
|
||||
*/
|
||||
GetSystemTime(&sys_time);
|
||||
t = GSTime(sys_time.eDay, sys_time.wMonth, sys_time.wYear,
|
||||
sys_time.wHour, sys_time.wMinute, sys_time.wSecond);
|
||||
#endif
|
||||
return t + sys_time.wMilliseconds / 1000.0;
|
||||
#endif /* __MINGW__ */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue