Fix for setenv in Mingw32.
#if _MSC_VER doesn't catch Mingw32 Builds. added || _WIN32.
This commit is contained in:
parent
57805dfd6a
commit
93b202697a
@ -447,7 +447,7 @@ class FormatEpochTimeInMillisAsIso8601Test : public Test {
|
||||
// tzset() distinguishes between the TZ variable being present and empty
|
||||
// and not being present, so we have to consider the case of time_zone
|
||||
// being NULL.
|
||||
#if _MSC_VER
|
||||
#if _MSC_VER || _WIN32
|
||||
// ...Unless it's MSVC, whose standard library's _putenv doesn't
|
||||
// distinguish between an empty and a missing variable.
|
||||
const std::string env_var =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user