mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2024-12-25 08:09:50 +01:00
color: add missing header for libc++ (#3)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
src/color/Color.cpp:71:66: error: no member named 'min' in namespace 'std'; did you mean 'fmin'? 71 | const double vmax = std::max(std::max(r, g), b), vmin = std::min(std::min(r, g), b); | ~~~~~^~~ | fmin /usr/include/c++/v1/cmath:447:9: note: 'fmin' declared here 447 | using ::fmin _LIBCPP_USING_IF_EXISTS; | ^ src/color/Color.cpp:71:75: error: no member named 'min' in namespace 'std'; did you mean 'fmin'? 71 | const double vmax = std::max(std::max(r, g), b), vmin = std::min(std::min(r, g), b); | ~~~~~^~~ | fmin /usr/include/c++/v1/cmath:447:9: note: 'fmin' declared here 447 | using ::fmin _LIBCPP_USING_IF_EXISTS; | ^
This commit is contained in:
parent
fb2c026864
commit
0f9b8ca692
1 changed files with 1 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <hyprgraphics/color/Color.hpp>
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
using namespace Hyprgraphics;
|
||||
|
|
Loading…
Reference in a new issue