Resolve compile error on cygwin. (#151)

This should solve issue:
https://github.com/ArthurSonzogni/FTXUI/issues/149
This commit is contained in:
Arthur Sonzogni 2021-07-14 14:41:31 +02:00 committed by GitHub
parent e87ff7e873
commit 9b7ddb1130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -9,8 +9,7 @@ using namespace ftxui;
#include "./color_info_sorted_2d.ipp" // for ColorInfoSorted2D #include "./color_info_sorted_2d.ipp" // for ColorInfoSorted2D
#include "ftxui/dom/elements.hpp" // for text, bgcolor, color, vbox, hbox, separator, operator|, Elements, Element, border #include "ftxui/dom/elements.hpp" // for text, bgcolor, color, vbox, hbox, separator, operator|, Elements, Element, border
#include "ftxui/dom/node.hpp" // for Render #include "ftxui/dom/node.hpp" // for Render
#include "ftxui/screen/box.hpp" // for ftxui #include "ftxui/screen/color.hpp" // for Color, Color::Black, Color::Blue, Color::BlueLight, Color::Cyan, Color::CyanLight, Color::Default, Color::GrayDark, Color::GrayLight, Color::Green, Color::GreenLight, Color::Magenta, Color::MagentaLight, Color::Red, Color::RedLight, Color::White, Color::Yellow, Color::YellowLight, Color::Palette256, ftxui
#include "ftxui/screen/color.hpp" // for Color, Color::Black, Color::Blue, Color::BlueLight, Color::Cyan, Color::CyanLight, Color::Default, Color::GrayDark, Color::GrayLight, Color::Green, Color::GreenLight, Color::Magenta, Color::MagentaLight, Color::Red, Color::RedLight, Color::White, Color::Yellow, Color::YellowLight, Color::Palette256
int main(int argc, const char* argv[]) { int main(int argc, const char* argv[]) {
// clang-format off // clang-format off

View File

@ -1,8 +1,8 @@
#include <gtest/gtest.h> // for Test, SuiteApiResolver, TestInfo (ptr only), TEST, TestFactoryImpl
#include <memory> // for shared_ptr, allocator, make_shared, __shared_ptr_access #include <memory> // for shared_ptr, allocator, make_shared, __shared_ptr_access
#include "ftxui/component/captured_mouse.hpp" // for ftxui #include "ftxui/component/captured_mouse.hpp" // for ftxui
#include "ftxui/component/component_base.hpp" // for ComponentBase, Component #include "ftxui/component/component_base.hpp" // for ComponentBase, Component
#include "gtest/gtest_pred_impl.h" // for Test, SuiteApiResolver, TEST, TestFactoryImpl
using namespace ftxui; using namespace ftxui;

View File

@ -1,8 +1,9 @@
#include "ftxui/component/terminal_input_parser.hpp" #include "ftxui/component/terminal_input_parser.hpp"
#include <algorithm> // for max #include <algorithm> // for max
#include <memory> // for unique_ptr #include <cstdint>
#include <utility> // for move #include <memory> // for unique_ptr
#include <utility> // for move
#include "ftxui/component/event.hpp" // for Event #include "ftxui/component/event.hpp" // for Event
@ -129,7 +130,7 @@ TerminalInputParser::Output TerminalInputParser::ParseUTF8() {
} }
// Accumulate the value of the first byte. // Accumulate the value of the first byte.
wchar_t value = head & ~mask; uint32_t value = head & ~mask;
// Invalid UTF8, with more than 5 bytes. // Invalid UTF8, with more than 5 bytes.
if (first_zero == 1 || first_zero >= 5) if (first_zero == 1 || first_zero >= 5)