Commit 3ed9d05c authored by David Reid's avatar David Reid

Fix compilation error on Android.

Public issue https://github.com/mackron/miniaudio/issues/805
parent a4aa0dc4
......@@ -16169,7 +16169,11 @@ static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority
/* I'm not treating a failure of setting the priority as a critical error so not aborting on failure here. */
if (pthread_attr_setschedparam(&attr, &sched) == 0) {
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
#if !defined(MA_ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 28)
{
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
}
#endif
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment