From ac12fa70e035d5a643590039c018e63c3e4dd038 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 29 Jan 2026 16:29:14 +1000 Subject: [PATCH] Fix Dreamcast/KallistiOS build. --- miniaudio.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 9d63253d..06ac0d42 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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