@@ -54,6 +54,22 @@ index 5e6e8bc..6ca72a1 100644
5454 qsort_r(ctx->suffix, ctx->suffixSize, sizeof(U32),
5555 (ctx->d <= 8 ? &COVER_strict_cmp8 : &COVER_strict_cmp),
5656 ctx);
57+ @@ -290,7 +290,7 @@ static void COVER_storeOffsets(COVER_ctx_t *ctx, size_t dstCapacity) {
58+ #if (defined(_WIN32) && defined(_MSC_VER)) || defined(__APPLE__)
59+ static int WIN_CDECL COVER_strict_cmp(void* g_coverCtx, const void* lp, const void* rp) {
60+ -#elif defined(_GNU_SOURCE)
61+ +#elif defined(_GNU_SOURCE) && defined(__GLIBC__)
62+ static int COVER_strict_cmp(const void *lp, const void *rp, void *g_coverCtx) {
63+ #else /* C90 fallback.*/
64+ static int COVER_strict_cmp(const void *lp, const void *rp) {
65+ @@ -306,7 +306,7 @@ static int COVER_strict_cmp(const void *lp, const void *rp) {
66+ #if (defined(_WIN32) && defined(_MSC_VER)) || defined(__APPLE__)
67+ static int WIN_CDECL COVER_strict_cmp8(void* g_coverCtx, const void* lp, const void* rp) {
68+ -#elif defined(_GNU_SOURCE)
69+ +#elif defined(_GNU_SOURCE) && defined(__GLIBC__)
70+ static int COVER_strict_cmp8(const void *lp, const void *rp, void *g_coverCtx) {
71+ #else /* C90 fallback.*/
72+ static int COVER_strict_cmp8(const void *lp, const void *rp) {
5773EOF
5874fi
5975
0 commit comments