Skip to content
Snippets Groups Projects
Commit 66be8e8f authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

Emscripten: only support thread with Emscripten's pthread enabled

parent e2c8d314
No related branches found
No related tags found
1 merge request!2658WASM port
...@@ -210,7 +210,11 @@ I_spawn_thread ( ...@@ -210,7 +210,11 @@ I_spawn_thread (
int int
I_can_thread (void) I_can_thread (void)
{ {
#ifdef __EMSCRIPTEN_PTHREADS__
return true;
#else
return SDL_ThreadID() != 0; return SDL_ThreadID() != 0;
#endif
} }
int int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment