Don't set pthread names in web builds

This commit is contained in:
Nikita Lisitsa 2026-07-06 22:34:36 +03:00
parent 75471c6054
commit f30da1a2ad

View file

@ -153,7 +153,7 @@ namespace psemek::log
#if __APPLE__
::pthread_setname_np(name.data());
#else
#if !(defined __EMSCRIPTEN__) || (defined __EMSCRIPTEN_PTHREADS__)
#if !(defined __EMSCRIPTEN__)
::pthread_setname_np(::pthread_self(), name.data());
#endif
#endif