From 3427da0cc031c11badbf45eeb59c0c36a3e3809e Mon Sep 17 00:00:00 2001 From: Sylko Olzscher Date: Fri, 18 Jul 2025 12:14:51 +0200 Subject: [PATCH] fix: using max() min() collides in windows build with predefined macros --- include/ftxui/component/component_options.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ftxui/component/component_options.hpp b/include/ftxui/component/component_options.hpp index d387fad10..c109bbafc 100644 --- a/include/ftxui/component/component_options.hpp +++ b/include/ftxui/component/component_options.hpp @@ -15,6 +15,14 @@ #include "ftxui/component/component_base.hpp" // for Component #include "ftxui/screen/color.hpp" // for Color, Color::GrayDark, Color::White +#if defined(max) +#undef max +#endif + +#if defined(min) +#undef min +#endif + namespace ftxui { /// @brief arguments for transform from |ButtonOption|, |CheckboxOption|,