From 5b0884d8e7f78ad6be17a5e79303aded984c9cf6 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 22 Dec 2025 16:31:33 +0100 Subject: [PATCH] Use getenv for readenv_atoi in CYGWIN or MINGW builds --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index 512096ca1d..4299ef18ce 100644 --- a/common.h +++ b/common.h @@ -765,7 +765,7 @@ static __inline int readenv_atoi(char *env) { return 0; } #else -#ifdef OS_WINDOWS +#if defined(OS_WINDOWS) && !defined(OS_CYGWIN_NT) static __inline int readenv_atoi(char *env) { env_var_t p; return readenv(p,env) ? 0 : atoi(p);