mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2025-01-03 14:56:36 -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
d5bc449998
commit
3165c25cd3
@ -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