mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
Fix compiler error on newer Android versions
This commit is contained in:
parent
8b01ffe133
commit
d126a0cfbb
1 changed files with 1 additions and 1 deletions
|
|
@ -961,7 +961,7 @@ void JUCE_CALLTYPE Thread::setCurrentThreadAffinityMask (const uint32 affinityMa
|
|||
if ((affinityMask & (1 << i)) != 0)
|
||||
CPU_SET (i, &affinity);
|
||||
|
||||
#if (! JUCE_LINUX) || ((__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2004)
|
||||
#if (! JUCE_ANDROID) && ((! JUCE_LINUX) || ((__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2004))
|
||||
pthread_setaffinity_np (pthread_self(), sizeof (cpu_set_t), &affinity);
|
||||
#else
|
||||
// NB: this call isn't really correct because it sets the affinity of the process,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue