mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-19 16:51:53 +00:00
Emscripten: only support thread with Emscripten's pthread enabled
This commit is contained in:
parent
e2c8d314d2
commit
66be8e8f28
1 changed files with 4 additions and 0 deletions
|
@ -210,7 +210,11 @@ I_spawn_thread (
|
|||
int
|
||||
I_can_thread (void)
|
||||
{
|
||||
#ifdef __EMSCRIPTEN_PTHREADS__
|
||||
return true;
|
||||
#else
|
||||
return SDL_ThreadID() != 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue