From 171485daa08e97782c05b3ca7490e6e42b827197 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Sun, 20 Nov 2005 21:29:12 +0000 Subject: version 0.1 svn path=/trunk/externals/grh/; revision=3989 --- threadlib/src/sleep.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'threadlib/src/sleep.c') diff --git a/threadlib/src/sleep.c b/threadlib/src/sleep.c index f800074..9f9eaab 100755 --- a/threadlib/src/sleep.c +++ b/threadlib/src/sleep.c @@ -21,7 +21,14 @@ */ #include "threadlib.h" + +// include for sleep +#ifdef MSW +#include +#define sleep(t) Sleep(1000*(t)) +#else #include +#endif static t_class *sleep_class; @@ -41,9 +48,7 @@ static void sleep_float(t_sleep * x, t_float f) static void *sleep_new(void) { t_sleep *x = (t_sleep *)pd_new(sleep_class); - x->x_outlet = outlet_new(&x->x_obj,&s_float); - return (void *)x; } -- cgit v1.2.1