From 4d53e27144b5ad02c6c37c27a998300986a4adaa Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 12 Mar 2025 09:55:14 -0700 Subject: [PATCH] removed OpenBSD specificity --- lib/dictBuilder/cover.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/dictBuilder/cover.c b/lib/dictBuilder/cover.c index 467c1b17f..92c22a96c 100644 --- a/lib/dictBuilder/cover.c +++ b/lib/dictBuilder/cover.c @@ -364,14 +364,6 @@ static void stableSort(COVER_ctx_t *ctx) qsort_s(ctx->suffix, ctx->suffixSize, sizeof(U32), (ctx->d <= 8 ? &COVER_strict_cmp8 : &COVER_strict_cmp), ctx); -#elif defined(__OpenBSD__) - /* On OpenBSD, qsort() is not guaranteed to be stable, their mergesort() is. - * Note(@cyan): qsort() is never guaranteed to be stable, - * so why would this property only matter for OpenBSD ? - */ - g_coverCtx = ctx; - mergesort(ctx->suffix, ctx->suffixSize, sizeof(U32), - (ctx->d <= 8 ? &COVER_strict_cmp8 : &COVER_strict_cmp)); #else /* C90 fallback.*/ g_coverCtx = ctx; /* TODO(cavalcanti): implement a reentrant qsort() when _r is not available. */ -- 2.47.2