X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/d7ed9a895836fcb5ba7723dfb42d1dab73bc1cb0..cdcb2a9f8b0d3ca6b3a2217b50c4a73f5375a2ca:/StringPool.cpp?ds=sidebyside diff --git a/StringPool.cpp b/StringPool.cpp index b6295bd..839eda5 100644 --- a/StringPool.cpp +++ b/StringPool.cpp @@ -9,6 +9,7 @@ #include #include +#include #if HAVE_PRINTF_ZD # define ZD "%zd" @@ -241,7 +242,7 @@ void StringPool::sortByConfig() NOISY(printf("SORTING STRINGS BY CONFIGURATION...\n")); // Vector::sort uses insertion sort, which is very slow for this data set. // Use quicksort instead because we don't need a stable sort here. - qsort_r(newPosToOriginalPos.editArray(), N, sizeof(size_t), this, config_sort); + qsort_r_compat(newPosToOriginalPos.editArray(), N, sizeof(size_t), this, config_sort); //newPosToOriginalPos.sort(config_sort, this); NOISY(printf("DONE SORTING STRINGS BY CONFIGURATION.\n"));