mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-25 06:32:29 +00:00
windows tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29468 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a14a8a49b6
commit
e9cdf2ec94
3 changed files with 11 additions and 7 deletions
|
@ -220,14 +220,12 @@ GSSleepUntilIntervalSinceReferenceDate(NSTimeInterval when)
|
|||
*/
|
||||
while (delay > 0)
|
||||
{
|
||||
#ifdef HAVE_USLEEP
|
||||
#if defined(__MINGW32__)
|
||||
Sleep ((NSInteger)(delay*1000));
|
||||
#elif defined(HAVE_USLEEP)
|
||||
usleep ((NSInteger)(delay*1000000));
|
||||
#else
|
||||
#if defined(__MINGW32__)
|
||||
Sleep (delay*1000);
|
||||
#else
|
||||
sleep ((NSInteger)delay);
|
||||
#endif
|
||||
#endif
|
||||
delay = when - GSTimeNow();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue