Emscripten: only support thread with Emscripten's pthread enabled

This commit is contained in:
Alam Ed Arias 2025-03-30 14:44:14 -04:00
parent e2c8d314d2
commit 66be8e8f28

View file

@ -210,7 +210,11 @@ I_spawn_thread (
int
I_can_thread (void)
{
#ifdef __EMSCRIPTEN_PTHREADS__
return true;
#else
return SDL_ThreadID() != 0;
#endif
}
int