mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
fix(color_util): Add missing header
This commit is contained in:
parent
f974609fc5
commit
c74a1647ab
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue