use _sleep instead of sleep on win32
authorBradley Bell <btb@icculus.org>
Sat, 12 Apr 2003 00:45:03 +0000 (00:45 +0000)
committerBradley Bell <btb@icculus.org>
Sat, 12 Apr 2003 00:45:03 +0000 (00:45 +0000)
ChangeLog
libmve/mveplay.c

index 18286dc..570feed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2003-04-11  Bradley Bell  <btb@icculus.org>
 
+       * libmve/mveplay.c: use _sleep instead of sleep on win32
+
        * README, arch/sdl/digi.c, arch/sdl/joy.c, arch/win32/Makefile.am,
        include/byteswap.h, include/cfile.h, include/error.h,
        libmve/Makefile.am, libmve/decoders.h, main/Makefile.am,
index 2dd61e0..b49c053 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mveplay.c,v 1.8 2003-04-12 00:02:16 btb Exp $ */
+/* $Id: mveplay.c,v 1.9 2003-04-12 00:45:03 btb Exp $ */
 #ifdef HAVE_CONFIG_H
 #include <conf.h>
 #endif
@@ -158,7 +158,7 @@ int gettimeofday(struct timeval *tv, void *tz)
 
 int nanosleep(struct timespec *ts, void *rem)
 {
-       sleep(ts->tv_sec * 1000 + ts->tv_nsec / 1000000);
+       _sleep(ts->tv_sec * 1000 + ts->tv_nsec / 1000000);
 
        return 0;
 }