mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 13:06:05 +00:00
Fix -Wundef warnings due to use of unguarded SDL_TIMER_DUMMY
This commit is contained in:
parent
da6fdc6a3c
commit
ed4cd28e9f
1 changed files with 2 additions and 2 deletions
|
|
@ -218,7 +218,7 @@ int SDL_InitSubSystem(Uint32 flags)
|
|||
|
||||
/* Initialize the timer subsystem */
|
||||
if (flags & SDL_INIT_TIMER) {
|
||||
#if !defined(SDL_TIMERS_DISABLED) && !SDL_TIMER_DUMMY
|
||||
#if !defined(SDL_TIMERS_DISABLED) && !defined(SDL_TIMER_DUMMY)
|
||||
if (SDL_ShouldInitSubsystem(SDL_INIT_TIMER)) {
|
||||
SDL_IncrementSubsystemRefCount(SDL_INIT_TIMER);
|
||||
if (SDL_InitTimers() < 0) {
|
||||
|
|
@ -429,7 +429,7 @@ void SDL_QuitSubSystem(Uint32 flags)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(SDL_TIMERS_DISABLED) && !SDL_TIMER_DUMMY
|
||||
#if !defined(SDL_TIMERS_DISABLED) && !defined(SDL_TIMER_DUMMY)
|
||||
if (flags & SDL_INIT_TIMER) {
|
||||
if (SDL_ShouldQuitSubsystem(SDL_INIT_TIMER)) {
|
||||
SDL_QuitTimers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue