fix(env_util): Add missing header
This commit is contained in:
parent
e441332f40
commit
30201bac38
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
|
||||
|
@ -9,7 +10,7 @@ POLYBAR_NS
|
|||
namespace env_util {
|
||||
bool has(const char* var) {
|
||||
const char* env{std::getenv(var)};
|
||||
return env != nullptr && strlen(env) > 0;
|
||||
return env != nullptr && std::strlen(env) > 0;
|
||||
}
|
||||
|
||||
string get(const char* var, string fallback) {
|
||||
|
|
Loading…
Reference in a new issue