fix: using max() min() collides in windows build with predefined macros

This commit is contained in:
Sylko Olzscher 2025-07-18 12:14:51 +02:00 committed by ArthurSonzogni
parent 8ef18ab647
commit 54c1053ca3
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -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|,