1818# endif
1919# include <windows.h>
2020
21- # ifdef HAVE_QSORT_S
21+ # ifdef GIT_QSORT_S
2222# include <search.h>
2323# endif
2424#endif
@@ -673,7 +673,7 @@ size_t git__unescape(char *str)
673673 return (pos - str );
674674}
675675
676- #if defined(HAVE_QSORT_S ) || defined(HAVE_QSORT_R_BSD )
676+ #if defined(GIT_QSORT_S ) || defined(GIT_QSORT_R_BSD )
677677typedef struct {
678678 git__sort_r_cmp cmp ;
679679 void * payload ;
@@ -688,9 +688,9 @@ static int GIT_LIBGIT2_CALL git__qsort_r_glue_cmp(
688688#endif
689689
690690
691- #if !defined(HAVE_QSORT_R_BSD ) && \
692- !defined(HAVE_QSORT_R_GNU ) && \
693- !defined(HAVE_QSORT_S )
691+ #if !defined(GIT_QSORT_R_BSD ) && \
692+ !defined(GIT_QSORT_R_GNU ) && \
693+ !defined(GIT_QSORT_S )
694694static void swap (uint8_t * a , uint8_t * b , size_t elsize )
695695{
696696 char tmp [256 ];
@@ -721,12 +721,12 @@ static void insertsort(
721721void git__qsort_r (
722722 void * els , size_t nel , size_t elsize , git__sort_r_cmp cmp , void * payload )
723723{
724- #if defined(HAVE_QSORT_R_BSD )
724+ #if defined(GIT_QSORT_R_BSD )
725725 git__qsort_r_glue glue = { cmp , payload };
726726 qsort_r (els , nel , elsize , & glue , git__qsort_r_glue_cmp );
727- #elif defined(HAVE_QSORT_R_GNU )
727+ #elif defined(GIT_QSORT_R_GNU )
728728 qsort_r (els , nel , elsize , cmp , payload );
729- #elif defined(HAVE_QSORT_S )
729+ #elif defined(GIT_QSORT_S )
730730 git__qsort_r_glue glue = { cmp , payload };
731731 qsort_s (els , nel , elsize , git__qsort_r_glue_cmp , & glue );
732732#else
0 commit comments