1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 01:37:58 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabi Melman
2c5c96e159
Merge pull request #1475 from Crunkle/v1.x
Fix Windows setenv check
2020-03-18 16:17:04 +02:00
Crunkle
a10763138e Fix Windows setenv check 2020-03-18 09:46:32 +00:00

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);