From c8f694e59481c019bb53d93086d68559504cd5a1 Mon Sep 17 00:00:00 2001 From: Sergey Dryabzhinsky Date: Thu, 6 Nov 2025 10:38:40 +0300 Subject: [PATCH] Update util.c Fixed prepocessor check on new var --- programs/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/util.c b/programs/util.c index 6e5d7f005..bff85f164 100644 --- a/programs/util.c +++ b/programs/util.c @@ -1593,7 +1593,7 @@ int UTIL_countCores(int logical) int siblings = 0; int cpu_cores = 0; - #ifdef ZSTD_PARSEFULL_CPUINFO + #if ZSTD_PARSE_FULL_CPUINFO == 1 int procs = 0; #endif int ratio = 1; @@ -1625,7 +1625,7 @@ int UTIL_countCores(int logical) cpu_cores = atoi(sep + 1); } - #ifdef ZSTD_PARSEFULL_CPUINFO + #if ZSTD_PARSE_FULL_CPUINFO == 1 if (strncmp(buff, "processor", 9) == 0) { const char* const sep = strchr(buff, ':'); if (sep == NULL || *sep == '\0') { @@ -1647,7 +1647,7 @@ int UTIL_countCores(int logical) if (ratio && numCores > ratio && !logical) { numCores = numCores / ratio; } -#ifdef ZSTD_PARSEFULL_CPUINFO +#if ZSTD_PARSE_FULL_CPUINFO == 1 if (procs) { numCores = procs; }