From 4d8f84f161cd73c8a700ec546009708443fa63ca Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 30 Dec 2025 17:33:59 -0500 Subject: [PATCH] timer: Use the emscripten-specific code on Emscripten, even with threading. Fixes #14640. --- src/timer/SDL_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index ab530abb20..52c1472976 100644 --- a/src/timer/SDL_timer.c +++ b/src/timer/SDL_timer.c @@ -25,7 +25,7 @@ // #define DEBUG_TIMERS -#if !defined(SDL_PLATFORM_EMSCRIPTEN) || !defined(SDL_THREADS_DISABLED) +#if !defined(SDL_PLATFORM_EMSCRIPTEN) typedef struct SDL_Timer { @@ -407,7 +407,7 @@ bool SDL_RemoveTimer(SDL_TimerID id) } } -#else +#else // Emscripten-specific implementation. #include #include @@ -533,7 +533,7 @@ bool SDL_RemoveTimer(SDL_TimerID id) } } -#endif // !SDL_PLATFORM_EMSCRIPTEN || !SDL_THREADS_DISABLED +#endif // !SDL_PLATFORM_EMSCRIPTEN static Uint64 tick_start; static Uint32 tick_numerator_ns;