Timers are a required platform feature

Many SDL subsystems depend on being able to see time passing. If you are porting to a new platform, you'll need to fill in a timer implementation as part of the initial port.

Fixes https://github.com/libsdl-org/SDL/issues/8850
This commit is contained in:
Sam Lantinga
2024-01-16 20:09:37 -08:00
parent 518b070aa9
commit 0d7df16812
7 changed files with 2 additions and 75 deletions

View File

@@ -2179,7 +2179,7 @@ elseif(APPLE)
set(SDL_TIMER_UNIX 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/timer/unix/*.c")
set(HAVE_SDL_TIMERS TRUE)
endif(SDL_TIMERS)
endif()
if(SDL_FILESYSTEM)
set(SDL_FILESYSTEM_COCOA 1)
@@ -2831,8 +2831,7 @@ if(NOT HAVE_SDL_THREADS)
endif()
endif()
if(NOT HAVE_SDL_TIMERS)
set(SDL_TIMER_DUMMY 1)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/timer/dummy/*.c")
message(FATAL_ERROR "Timers are needed by many SDL subsystems and may not be disabled")
endif()
# Most platforms use this.