mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 08:34:06 +08:00
Workaround for broken C++ stdlibs (NuttX)
This commit is contained in:
parent
ca96854332
commit
c3cae8d8ad
@ -149,7 +149,8 @@ bool PoolManager<MaxPools>::addPool(IPoolAllocator* pool)
|
||||
}
|
||||
}
|
||||
// We need to keep the pools in order, so that smallest blocks go first
|
||||
std::qsort(pools_, MaxPools, sizeof(IPoolAllocator*), &PoolManager::qsortComparePoolAllocators);
|
||||
using namespace std; // for qsort()
|
||||
qsort(pools_, MaxPools, sizeof(IPoolAllocator*), &PoolManager::qsortComparePoolAllocators);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user