diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-12-20 01:19:00 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-12-20 01:22:16 +0100 |
commit | 4b9bfecf6a6ed47a20ab08e2059aa28f9eb8f2b3 (patch) | |
tree | 1a0da2503d1f74be7287ea0aa3b004c56e6618c6 /src | |
parent | 55913322f85fcdd7cc8e5dcd5b479c20ba87959e (diff) | |
download | VeraCrypt-4b9bfecf6a6ed47a20ab08e2059aa28f9eb8f2b3.tar.gz VeraCrypt-4b9bfecf6a6ed47a20ab08e2059aa28f9eb8f2b3.zip |
Linux: fix build error with old gcc compilers that don't have std::getenv
Diffstat (limited to 'src')
-rw-r--r-- | src/Main/Resources.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/Resources.cpp b/src/Main/Resources.cpp index fe2f2c95..32bcd9d2 100644 --- a/src/Main/Resources.cpp +++ b/src/Main/Resources.cpp @@ -63,7 +63,7 @@ namespace VeraCrypt string filenamePrefix("/usr/share/veracrypt/languages/Language."); string filenamePost(".xml"); string filename = filenamePrefix + defaultLang + filenamePost; - if(const char* env_p = std::getenv("LANG")){ + if(const char* env_p = getenv("LANG")){ string lang(env_p); std::cout << lang << std::endl; if ( lang.size() > 1 ){ |