Skip to content

Commit

Permalink
Update libretro-common
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Feb 22, 2023
1 parent 00c0eda commit a77802f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libretro-common/include/retro_timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a77802f

Please sign in to comment.