mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-08 14:57:11 +02:00
29 lines
963 B
Diff
29 lines
963 B
Diff
diff --git a/src/util.c b/src/util.c
|
|
index b3929bc..fe9af6f 100644
|
|
--- a/src/util.c
|
|
+++ b/src/util.c
|
|
@@ -628,22 +628,7 @@ static int GIT_STDLIB_CALL git__qsort_r_glue_cmp(
|
|
void git__qsort_r(
|
|
void *els, size_t nel, size_t elsize, git__sort_r_cmp cmp, void *payload)
|
|
{
|
|
-#if defined(__MINGW32__) || defined(AMIGA) || \
|
|
- defined(__OpenBSD__) || defined(__NetBSD__) || \
|
|
- defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
|
|
- defined(__sun) || defined(__CYGWIN__) || \
|
|
- (__GLIBC__ == 2 && __GLIBC_MINOR__ < 8) || \
|
|
- (defined(_MSC_VER) && _MSC_VER < 1500)
|
|
git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
|
|
-#elif defined(GIT_WIN32)
|
|
- git__qsort_r_glue glue = { cmp, payload };
|
|
- qsort_s(els, nel, elsize, git__qsort_r_glue_cmp, &glue);
|
|
-#elif defined(BSD)
|
|
- git__qsort_r_glue glue = { cmp, payload };
|
|
- qsort_r(els, nel, elsize, &glue, git__qsort_r_glue_cmp);
|
|
-#else
|
|
- qsort_r(els, nel, elsize, cmp, payload);
|
|
-#endif
|
|
}
|
|
|
|
void git__insertsort_r(
|
|
|