diff --git a/include/ftxui/screen/color.hpp b/include/ftxui/screen/color.hpp index 84bd936..6bb0c19 100644 --- a/include/ftxui/screen/color.hpp +++ b/include/ftxui/screen/color.hpp @@ -4,6 +4,12 @@ #include #include +#ifdef RGB +// Workaround for wingdi.h (via Windows.h) defining macros that break things. +// https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-rgb +#undef RGB +#endif + namespace ftxui { /// @brief A class representing terminal colors.