1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

fix(color_util): Add missing header

This commit is contained in:
Michael Carlberg 2017-01-24 12:37:19 +01:00
parent f974609fc5
commit c74a1647ab

View file

@ -1,5 +1,7 @@
#pragma once
#include <cstdlib>
#include "common.hpp"
#include "utils/cache.hpp"
@ -92,7 +94,7 @@ namespace color_util {
inline unsigned int parse(string hex, unsigned int fallback = 0) {
if ((hex = parse_hex(hex)).empty())
return fallback;
return strtoul(&hex[1], nullptr, 16);
return std::strtoul(&hex[1], nullptr, 16);
}
inline string simplify_hex(string hex) {