[GRASS-dev] g.mapsets use of sleep()

Markus Neteler neteler at itc.it
Wed May 16 16:58:18 EDT 2007


[ MinGW compile errors for sleep() ]


Glynn Clements wrote:
> 
> ...
> ... use G_sleep() instead:
> 
>>From lib/gis/sleep.c:
> 
> 	unsigned int G_sleep (unsigned int seconds)
> 	{
> 	#ifdef __MINGW32__
> 	    /* TODO: no sleep for now */
> 	    return 0;    
> 	#else /* __MINGW32__ */
> 	    return sleep(seconds);
> 	#endif /* __MINGW32__ */
> 	}
> 
> On MinGW, it doesn't actually sleep, but at least you don't get a link
> error.
> 

I have added there code for MinGW to use Sleep() and updated
all remaining sleep() to G_sleep().

Markus
-- 
View this message in context: http://www.nabble.com/g.mapsets-use-of-sleep%28%29-tf2764621.html#a10654453
Sent from the Grass - Dev mailing list archive at Nabble.com.




More information about the grass-dev mailing list