From ce252ff92e7f959ce63cfeea3a362f1bdbac493f Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Sat, 15 Jul 2023 16:37:50 +0200 Subject: [PATCH] Add missing includes for gcc Bug:https://github.com/ArthurSonzogni/FTXUI/issues/695 --- include/ftxui/screen/string.hpp | 1 + src/ftxui/component/screen_interactive.cpp | 3 ++- src/ftxui/component/slider.cpp | 3 ++- src/ftxui/dom/benchmark_test.cpp | 4 ++-- src/ftxui/screen/color.cpp | 1 + tools/license_headers.cpp | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/ftxui/screen/string.hpp b/include/ftxui/screen/string.hpp index e1a20d5b..92181fda 100644 --- a/include/ftxui/screen/string.hpp +++ b/include/ftxui/screen/string.hpp @@ -2,6 +2,7 @@ #define FTXUI_SCREEN_STRING_HPP #include // for size_t +#include // for uint8_t #include // for string, wstring, to_string #include // for vector diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index 7d8af41c..29007710 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -70,7 +70,8 @@ void Flush() { } constexpr int timeout_milliseconds = 20; -[[maybe_unused]] constexpr int timeout_microseconds = timeout_milliseconds * 1000; +[[maybe_unused]] constexpr int timeout_microseconds = + timeout_milliseconds * 1000; #if defined(_WIN32) void EventListener(std::atomic* quit, Sender out) { diff --git a/src/ftxui/component/slider.cpp b/src/ftxui/component/slider.cpp index e45bd916..a26b5221 100644 --- a/src/ftxui/component/slider.cpp +++ b/src/ftxui/component/slider.cpp @@ -1,4 +1,5 @@ -#include // for max, min +#include // for max, min +#include // for uint8_t, uint16_t, uint32_t, uint64_t #include // for SliderOption #include // for allocator #include // for move diff --git a/src/ftxui/dom/benchmark_test.cpp b/src/ftxui/dom/benchmark_test.cpp index f341d5f6..51d5301c 100644 --- a/src/ftxui/dom/benchmark_test.cpp +++ b/src/ftxui/dom/benchmark_test.cpp @@ -32,11 +32,11 @@ BENCHMARK(BencharkBasic)->DenseRange(0, 256, 16); static void BencharkText(benchmark::State& state) { while (state.KeepRunning()) { std::string content = "HELLO world "; - for(int i=0; i // for array #include +#include #include // for literals #include "ftxui/screen/color_info.hpp" // for GetColorInfo, ColorInfo diff --git a/tools/license_headers.cpp b/tools/license_headers.cpp index 2986cb90..fa07c0e8 100644 --- a/tools/license_headers.cpp +++ b/tools/license_headers.cpp @@ -1,4 +1,4 @@ -// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Copyright 2023 Arthur Sonzogni. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file.