mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
added win32 support to libshout
- new MSVC6 project files - os.h with WIN32 specific typedefs - fixed some casting issues which were causing precision errors on win32 - apparently select doesn't work with microsecond granularity so we will use Sleep() which does. svn path=/trunk/timing/; revision=5796
This commit is contained in:
parent
d7dc5d327c
commit
c95f2cea8d
@ -70,5 +70,9 @@ void timing_sleep(uint64_t sleeptime)
|
|||||||
* says so. The solaris manpage also says this is a legal
|
* says so. The solaris manpage also says this is a legal
|
||||||
* value. If you think differerntly, please provide references.
|
* value. If you think differerntly, please provide references.
|
||||||
*/
|
*/
|
||||||
select(0, NULL, NULL, NULL, &sleeper);
|
#ifdef WIN32
|
||||||
|
Sleep(sleeptime);
|
||||||
|
#else
|
||||||
|
select(1, NULL, NULL, NULL, &sleeper);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user