mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 09:33:33 +08:00
Workaround for broken C++ stdlibs (NuttX)
This commit is contained in:
@@ -149,7 +149,8 @@ bool PoolManager<MaxPools>::addPool(IPoolAllocator* pool)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// We need to keep the pools in order, so that smallest blocks go first
|
// 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;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user