X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/d7ed9a895836fcb5ba7723dfb42d1dab73bc1cb0..03113329e40e017c1d4248b412e65c5b72101c67:/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"));