Commit 7f8cf6fe by Sebastian Bauer

Fixed qsort_r() problem when targeting AmigaOS.

We fall back to the libgit2-provided insert sort as done for other
platforms.
parent 590991a7
...@@ -685,7 +685,7 @@ static int GIT_STDLIB_CALL git__qsort_r_glue_cmp( ...@@ -685,7 +685,7 @@ static int GIT_STDLIB_CALL git__qsort_r_glue_cmp(
void git__qsort_r( void git__qsort_r(
void *els, size_t nel, size_t elsize, git__sort_r_cmp cmp, void *payload) void *els, size_t nel, size_t elsize, git__sort_r_cmp cmp, void *payload)
{ {
#if defined(__MINGW32__) || defined(__OpenBSD__) #if defined(__MINGW32__) || defined(__OpenBSD__) || defined(AMIGA)
git__insertsort_r(els, nel, elsize, NULL, cmp, payload); git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
#elif defined(GIT_WIN32) #elif defined(GIT_WIN32)
git__qsort_r_glue glue = { cmp, payload }; git__qsort_r_glue glue = { cmp, payload };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment