diff options
| author | Junio C Hamano <gitster@pobox.com> | 2008-02-16 18:11:10 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2008-02-16 18:11:47 -0800 |
| commit | f8732c5596eb58d0daafdd61355e59831a95ae2e (patch) | |
| tree | e2ba2efd1d5670d8920feee282581bc0cd989851 /git-compat-util.h | |
| parent | 2ac4b4b2228f3ef996db7b07aea74c4b1a796f38 (diff) | |
| parent | 43fe901b71f81cdff142048dfc27e492c445d225 (diff) | |
| download | git-f8732c5596eb58d0daafdd61355e59831a95ae2e.tar.gz | |
Merge branch 'bd/qsort'
* bd/qsort:
compat: Add simplified merge sort implementation from glibc
Diffstat (limited to 'git-compat-util.h')
| -rw-r--r-- | git-compat-util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 4df90cb34e..05146047e0 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -426,4 +426,10 @@ static inline int strtol_i(char const *s, int base, int *result) return 0; } +#ifdef INTERNAL_QSORT +void git_qsort(void *base, size_t nmemb, size_t size, + int(*compar)(const void *, const void *)); +#define qsort git_qsort +#endif + #endif |
