mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
Merge pull request #898 from devnexen/sdl_cpupauseinstr
Sys_CpuPause uses the new SDL_CPUPauseInstruction macro if available.
This commit is contained in:
commit
66dcc8edf3
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