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
This commit is contained in:
2026-07-21 08:54:24 +02:00
parent 04ebb65d0f
commit b0b7441e94
+1 -1
View File
@@ -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);
}