From b0b7441e94c96a7ab18de5b57b2426846ad1bf78 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 21 Jul 2026 08:54:24 +0200 Subject: [PATCH] fix(compress): correct MT callback declaration Keep the MT frame-progression callback under the ZSTD_MULTITHREAD preprocessor guard using an ordinary C declaration. The previous warning-cleanup edit accidentally prefixed the declaration with a preprocessor marker, which broke the multithreaded compilation path. Test Plan: - git diff --cached --check - Capped native rebuild failed before this fix at the invalid directive; rerun pending --- lib/compress/zstd_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 7beab6017..f3351a214 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -4440,7 +4440,7 @@ size_t ZSTD_estimateCStreamSize(int compressionLevel) * able to count progression inside worker threads (non-blocking mode). */ #ifdef ZSTD_MULTITHREAD -# static ZSTD_frameProgression ZSTD_rust_frameProgression_MT(void* context) +static ZSTD_frameProgression ZSTD_rust_frameProgression_MT(void* context) { return ZSTDMT_getFrameProgression((ZSTDMT_CCtx*)context); }