mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 23:26:39 +00:00
qsort_r is only available from Visual Studio 2005+
This commit is contained in:
parent
cde32d4d28
commit
491ad0de59
@ -613,7 +613,8 @@ void git__qsort_r(
|
|||||||
defined(__OpenBSD__) || defined(__NetBSD__) || \
|
defined(__OpenBSD__) || defined(__NetBSD__) || \
|
||||||
defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
|
defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
|
||||||
defined(__sun) || defined(__CYGWIN__) || \
|
defined(__sun) || defined(__CYGWIN__) || \
|
||||||
(__GLIBC__ == 2 && __GLIBC_MINOR__ < 8)
|
(__GLIBC__ == 2 && __GLIBC_MINOR__ < 8) || \
|
||||||
|
(defined(_MSC_VER) && _MSC_VER < 1500)
|
||||||
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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user