From 095793af4ba0e80d28646628d0b94385ce514f6e Mon Sep 17 00:00:00 2001 From: luxferre Date: Fri, 28 Jul 2023 12:32:58 +0300 Subject: [PATCH] Added fallback values for compilers/stdlibs that don't recognize SIGWINCH or IUTF8 --- nne.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nne.c b/nne.c index b4a8747..f7789a1 100644 --- a/nne.c +++ b/nne.c @@ -30,6 +30,13 @@ #define NNE_TABWIDTH 2 #endif #define NNE_PAGESIZE 2048 /* memory page size in bytes for main text buffer */ +/* non-POSIX fallbacks for some flags */ +#ifndef SIGWINCH +#define SIGWINCH 28 +#endif +#ifndef IUTF8 +#define IUTF8 0x4000 +#endif /* terminal control macros (constants) */ #define ERESET "\x1b[0m" /* reset the styling */ -- 2.45.2