From b119f40f089aeee402eaa3d31cb2f8ca7a4dcb01 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 29 Oct 2026 15:39:47 +0100 Subject: [PATCH] window_limits_test: setenv/unsetenv for MSVC (the Windows test build stopped on it) --- src/core/window_limits_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/window_limits_test.cpp b/src/core/window_limits_test.cpp index 3c89cc40..ec60b514 100644 --- a/src/core/window_limits_test.cpp +++ b/src/core/window_limits_test.cpp @@ -9,6 +9,10 @@ #include namespace { +#if defined(_WIN32) +void setenv(const char* k, const char* v, int) { _putenv_s(k, v); } // MSVC has _putenv_s only; an empty value unsets it +void unsetenv(const char* k) { _putenv_s(k, ""); } +#endif int checks = 0; void check(bool ok, const char* label) { ++checks;