Merge pull request #1475 from Crunkle/v1.x

Fix Windows setenv check
This commit is contained in:
Gabi Melman 2020-03-18 16:17:04 +02:00 committed by GitHub
commit 2c5c96e159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ TEST_CASE("env", "[cfg]")
{
spdlog::drop("l1");
auto l1 = spdlog::create<test_sink_st>("l1");
#ifdef _MSC_VER
#ifdef CATCH_PLATFORM_WINDOWS
_putenv_s("SPDLOG_LEVEL", "l1=warn");
#else
setenv("SPDLOG_LEVEL", "l1=warn", 1);