Browse Source

sys: fix Linux build.

legacy
Sam Hocevar 4 years ago
parent
commit
c9a09efec0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lol/sys/init.h

+ 2
- 2
src/lol/sys/init.h View File

@@ -69,8 +69,8 @@ static inline std::string getenv(std::string const &var)
return ret;
}
#else
if (auto var = std::getenv(var.c_str()))
return std::string(var);
if (auto val = std::getenv(var.c_str()))
return std::string(val);
#endif
return std::string();
}


Loading…
Cancel
Save