From 469d2cd736208534dd8468d970fdeb18dfed71cc Mon Sep 17 00:00:00 2001 From: Ilia Sharin Date: Sun, 2 Feb 2020 15:27:46 -0500 Subject: [PATCH] Fix compilation issue on macOS(CLang compiler) where stdlib doesn't define quick_exit() --- src/ftxui/component/screen_interactive.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index 0ffa31b..d8c9231 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -11,6 +11,11 @@ #include "ftxui/screen/string.hpp" #include "ftxui/screen/terminal.hpp" +#if defined(__clang__) && defined (__APPLE__) + // Quick exit is missing in standard CLang headers + #define quick_exit(a) exit(a) +#endif + namespace ftxui { static const char* HIDE_CURSOR = "\e[?25l";