@@ -33,10 +33,16 @@ #endif #ifdef OF_HAVE_SCHED_YIELD # include #endif + +#ifdef __wii__ +# define BOOL OGC_BOOL +# include +# undef BOOL +#endif #import "OFThread.h" #import "OFThread+Private.h" #import "OFRunLoop.h" #import "OFList.h" @@ -179,11 +185,15 @@ rqtp.tv_nsec = lrint((timeInterval - rqtp.tv_sec) * 1000000000); if (rqtp.tv_sec != floor(timeInterval)) @throw [OFOutOfRangeException exception]; +# ifndef __wii__ nanosleep(&rqtp, NULL); +# else + nanosleep(&rqtp); +# endif #elif defined(OF_NINTENDO_DS) uint64_t counter; if (timeInterval > UINT64_MAX / 60) @throw [OFOutOfRangeException exception];