From 0453507450fdb386c50b994cd913a6f8e1f7cbb2 Mon Sep 17 00:00:00 2001 From: Matvey Soloviev Date: Sun, 12 Mar 2023 21:59:32 +0100 Subject: [PATCH] Fix OS X build --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index fd26847..8c79461 100644 --- a/main.cpp +++ b/main.cpp @@ -10,7 +10,9 @@ #include #include #include + #include +#include #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" @@ -955,7 +957,7 @@ int main(int argc, char ** argv) { bool another_line=true; while (another_line) { char buf[256] = {0}; - size_t n_read; + int n_read; if(params.use_color) printf(ANSI_BOLD ANSI_COLOR_GREEN); scanf("%255[^\n]%n%*c", buf, &n_read); if(params.use_color) printf(ANSI_COLOR_RESET);