We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618eb57 commit 4d8f84fCopy full SHA for 4d8f84f
src/timer/SDL_timer.c
@@ -25,7 +25,7 @@
25
26
// #define DEBUG_TIMERS
27
28
-#if !defined(SDL_PLATFORM_EMSCRIPTEN) || !defined(SDL_THREADS_DISABLED)
+#if !defined(SDL_PLATFORM_EMSCRIPTEN)
29
30
typedef struct SDL_Timer
31
{
@@ -407,7 +407,7 @@ bool SDL_RemoveTimer(SDL_TimerID id)
407
}
408
409
410
-#else
+#else // Emscripten-specific implementation.
411
412
#include <emscripten/emscripten.h>
413
#include <emscripten/eventloop.h>
@@ -533,7 +533,7 @@ bool SDL_RemoveTimer(SDL_TimerID id)
533
534
535
536
-#endif // !SDL_PLATFORM_EMSCRIPTEN || !SDL_THREADS_DISABLED
+#endif // !SDL_PLATFORM_EMSCRIPTEN
537
538
static Uint64 tick_start;
539
static Uint32 tick_numerator_ns;
0 commit comments