util/SortList: enable the std::predicate kludge for macOS as well

Sigh.
This commit is contained in:
Max Kellermann 2022-11-11 19:30:47 +01:00
parent 0c92c12adf
commit 970ccf043b

View File

@ -43,7 +43,7 @@
template<typename List> template<typename List>
constexpr void constexpr void
MergeList(List &dest, List &src, MergeList(List &dest, List &src,
#ifndef ANDROID #if !defined(ANDROID) && !defined(__APPLE__)
/* Android NDK r25b has no std::predicate */ /* Android NDK r25b has no std::predicate */
std::predicate<typename List::const_reference, typename List::const_reference> std::predicate<typename List::const_reference, typename List::const_reference>
#endif #endif
@ -89,7 +89,7 @@ MergeList(List &dest, List &src,
template<typename List> template<typename List>
constexpr void constexpr void
SortList(List &list, SortList(List &list,
#ifndef ANDROID #if !defined(ANDROID) && !defined(__APPLE__)
/* Android NDK r25b has no std::predicate */ /* Android NDK r25b has no std::predicate */
std::predicate<typename List::const_reference, typename List::const_reference> std::predicate<typename List::const_reference, typename List::const_reference>
#endif #endif