mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Update libretro-common
This commit is contained in:
parent
00c0eda046
commit
a77802fec4
@ -100,12 +100,12 @@ static int nanosleepDOS(const struct timespec *rqtp, struct timespec *rmtp)
|
||||
#elif defined(WIIU)
|
||||
#define retro_sleep(msec) (OSSleepTicks(ms_to_ticks((msec))))
|
||||
#else
|
||||
#define retro_sleep(msec) \
|
||||
{ \
|
||||
struct timespec tv; \
|
||||
tv.tv_sec = msec / 1000; \
|
||||
tv.tv_nsec = (msec % 1000) * 1000000; \
|
||||
nanosleep(&tv, NULL); \
|
||||
static INLINE void retro_sleep(unsigned msec)
|
||||
{
|
||||
struct timespec tv;
|
||||
tv.tv_sec = msec / 1000;
|
||||
tv.tv_nsec = (msec % 1000) * 1000000;
|
||||
nanosleep(&tv, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user