Fix Dreamcast/KallistiOS build.

This commit is contained in:
David Reid
2026-01-29 16:29:14 +10:00
parent 3ab152afb3
commit ac12fa70e0
+5 -2
View File
@@ -4052,6 +4052,9 @@ typedef ma_uint16 wchar_t;
#if defined(__SWITCH__) || defined(__NX__)
#define MA_SWITCH
#endif
#if defined(__DREAMCAST__)
#define MA_DREAMCAST /* Assuming KallistiOS. */
#endif
#if defined(__BEOS__) || defined(__HAIKU__)
#define MA_BEOS
#endif
@@ -17494,7 +17497,7 @@ static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority
int result;
pthread_attr_t* pAttr = NULL;
#if !defined(MA_EMSCRIPTEN) && !defined(MA_3DS) && !defined(MA_SWITCH)
#if !defined(MA_EMSCRIPTEN) && !defined(MA_3DS) && !defined(MA_SWITCH) && !defined(MA_DREAMCAST)
/* Try setting the thread priority. It's not critical if anything fails here. */
pthread_attr_t attr;
if (pthread_attr_init(&attr) == 0) {
@@ -19378,7 +19381,7 @@ Dynamic Linking
*******************************************************************************/
/* Disable run-time linking on certain backends and platforms. */
#ifndef MA_NO_RUNTIME_LINKING
#if defined(MA_EMSCRIPTEN) || defined(MA_ORBIS) || defined(MA_PROSPERO) || defined(MA_SWITCH)
#if defined(MA_EMSCRIPTEN) || defined(MA_ORBIS) || defined(MA_PROSPERO) || defined(MA_SWITCH) || defined(MA_DREAMCAST)
#define MA_NO_RUNTIME_LINKING
#endif
#endif