Emscripten: Force MA_NO_THREADING if not compiling with pthread support.

This commit is contained in:
David Reid
2026-01-13 12:53:30 +10:00
parent b3f32437b8
commit cdd3d39ac0
+7
View File
@@ -4102,7 +4102,14 @@ typedef wchar_t ma_wchar_win32;
typedef ma_uint16 ma_wchar_win32; typedef ma_uint16 ma_wchar_win32;
#endif #endif
/* Disable threading on the Emscripten build if it's not built with pthread support. */
#if defined(MA_EMSCRIPTEN) && !defined(__EMSCRIPTEN_PTHREADS__)
#ifndef MA_NO_THREADING
#define MA_NO_THREADING
#endif
#endif
/* pthread. */
#if defined(MA_POSIX) #if defined(MA_POSIX)
#if !defined(MA_NO_THREADING) #if !defined(MA_NO_THREADING)
/* /*