From 0f9b8ca692b319c3cadd10175518805dbdc33ef0 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 18 Dec 2024 16:59:51 +0000 Subject: [PATCH] color: add missing header for libc++ (#3) 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; | ^ --- src/color/Color.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/color/Color.cpp b/src/color/Color.cpp index 3de4454..1a796aa 100644 --- a/src/color/Color.cpp +++ b/src/color/Color.cpp @@ -1,4 +1,5 @@ #include +#include #include using namespace Hyprgraphics;