Sys_CpuPause uses the new SDL_CPUPauseInstruction macro if available.

This commit is contained in:
David Carlier 2022-09-20 19:06:03 +01:00
parent e29d37956a
commit 9d38e5c347

View file

@ -82,6 +82,9 @@ char userGivenGame[MAX_QPATH];
qboolean quitnextframe;
#ifndef DEDICATED_ONLY
#ifdef SDL_CPUPauseInstruction
# define Sys_CpuPause() SDL_CPUPauseInstruction()
#else
static YQ2_ATTR_INLINE void Sys_CpuPause(void)
{
#if defined(__GNUC__)
@ -101,6 +104,7 @@ static YQ2_ATTR_INLINE void Sys_CpuPause(void)
#endif
}
#endif
#endif
static void Qcommon_Frame(int usec);