]> git.proxmox.com Git - libgit2.git/commitdiff
qsort_r is only available from Visual Studio 2005+
authorJacques Germishuys <jacquesg@striata.com>
Sat, 5 Jul 2014 19:26:35 +0000 (21:26 +0200)
committerJacques Germishuys <jacquesg@striata.com>
Sun, 6 Jul 2014 07:22:24 +0000 (09:22 +0200)
src/util.c

index f9d37e4f42beb58a781caab30c098dff3ebcc41d..5c305950fab4b0e3908ecd84e56f773195732905 100644 (file)
@@ -613,7 +613,8 @@ void git__qsort_r(
        defined(__OpenBSD__) || defined(__NetBSD__) || \
        defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
        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);
 #elif defined(GIT_WIN32)
        git__qsort_r_glue glue = { cmp, payload };