Workaround for broken C++ stdlibs (NuttX)

This commit is contained in:
Pavel Kirienko 2014-05-05 21:25:36 +04:00
parent ca96854332
commit c3cae8d8ad

View File

@ -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;
}