mirror of https://gitee.com/bigwinds/arangodb
port setenv call for windows
This commit is contained in:
parent
331ff7b724
commit
cfa5daec8f
|
@ -100,7 +100,11 @@ void* LanguageFeature::prepareIcu(std::string const& binaryPath, std::string con
|
|||
std::string icu_path = path.substr(0, path.length() - fn.length());
|
||||
FileUtils::makePathAbsolute(icu_path);
|
||||
FileUtils::normalizePath(icu_path);
|
||||
#ifndef _WIN32
|
||||
setenv("ICU_DATA", icu_path.c_str(), 1);
|
||||
#else
|
||||
SetEnvironmentVariable("ICU_DATA", icu_path.c_str());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue