fix(env_util): Add missing header

This commit is contained in:
Michael Carlberg 2017-01-11 09:28:39 +01:00
parent e441332f40
commit 30201bac38

View File

@ -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) {