From a10763138e94507f073fc41a16d279fe3f94ab40 Mon Sep 17 00:00:00 2001 From: Crunkle Date: Wed, 18 Mar 2020 09:46:32 +0000 Subject: [PATCH] Fix Windows setenv check --- tests/test_cfg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cfg.cpp b/tests/test_cfg.cpp index 7e6f36e5..8231ff89 100644 --- a/tests/test_cfg.cpp +++ b/tests/test_cfg.cpp @@ -12,7 +12,7 @@ TEST_CASE("env", "[cfg]") { spdlog::drop("l1"); auto l1 = spdlog::create("l1"); -#ifdef _MSC_VER +#ifdef CATCH_PLATFORM_WINDOWS _putenv_s("SPDLOG_LEVEL", "l1=warn"); #else setenv("SPDLOG_LEVEL", "l1=warn", 1);