From 3165c25cd3145a5ed8e790adcb382bcf98d0bd40 Mon Sep 17 00:00:00 2001 From: oddsock Date: Fri, 30 Jan 2004 00:08:02 +0000 Subject: [PATCH] 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 --- timing/timing.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/timing/timing.c b/timing/timing.c index 34530d2..c4f1b46 100644 --- a/timing/timing.c +++ b/timing/timing.c @@ -70,5 +70,9 @@ void timing_sleep(uint64_t sleeptime) * says so. The solaris manpage also says this is a legal * 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 }