mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 23:26:44 -08:00
util: use putenv instead of setenv for mingw
This commit is contained in:
@@ -402,8 +402,13 @@ std::string get_nix_version_display_string()
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
#if defined(__MINGW32__) || defined(__MINGW__)
|
||||||
|
putenv("LC_ALL=C");
|
||||||
|
putenv("LANG=C");
|
||||||
|
#else
|
||||||
setenv("LC_ALL", "C", 1);
|
setenv("LC_ALL", "C", 1);
|
||||||
setenv("LANG", "C", 1);
|
setenv("LANG", "C", 1);
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user