mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Emscripten: Force MA_NO_THREADING if not compiling with pthread support.
This commit is contained in:
@@ -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)
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user