mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
Sys_CpuPause uses the new SDL_CPUPauseInstruction macro if available.
This commit is contained in:
parent
e29d37956a
commit
9d38e5c347
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue