mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Linux: fix build error with old gcc compilers that don't have std::getenv
This commit is contained in:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user