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