Skip to content

Commit e1d674b

Browse files
authored
Change to GetEnv and add missing ;
1 parent 2c1b28e commit e1d674b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/Interpreter/Compatibility.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
#endif
1919

2020

21-
char* getenv_os_independent(char* Var_Name) {
21+
char* GetEnv(char* Var_Name) {
2222
#ifdef _WIN32
2323
char* Env = nullptr;
2424
size_t sz = 0;
25-
getenv_s(&sz, Env, sz, Var_Name)
25+
getenv_s(&sz, Env, sz, Var_Name);
2626
return Env;
2727
#else
2828
return getenv(Var_Name);

lib/Interpreter/DynamicLibraryManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace Cpp {
5353
// Behaviour is to not add paths that don't exist...In an interpreted env
5454
// does this make sense? Path could pop into existance at any time.
5555
for (const char* Var : kSysLibraryEnv) {
56-
if (getenv_os_independent(Var)) {
56+
if (GetEnv(Var)) {
5757
SmallVector<StringRef, 10> CurPaths;
5858
SplitPaths(Env, CurPaths, utils::kPruneNonExistant, Cpp::utils::platform::kEnvDelim);
5959
for (const auto& Path : CurPaths)

lib/Interpreter/Paths.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ bool ExpandEnvVars(std::string& Str, bool Path) {
171171
std::string FullPath;
172172
char* Tok = nullptr;
173173
size_t sz = 0;
174-
if (getenv_os_independent(EnvVar.c_str()))
174+
if (GetEnv(EnvVar.c_str()))
175175
FullPath = Tok;
176176

177177
Str.replace(DPos, Length, FullPath);

0 commit comments

Comments
 (0)