From d682d8b3d3cb9e12d84021d5458c3555d15db040 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 8 Feb 2024 13:10:42 -0800 Subject: [PATCH] curses: build fix for italics attribute support I've been building tty-only for a while in order to speed up builds, so a recent change to the curses interface that broke compile on older OSX went unnoticed. The on my OSX 10.11.6 system does not define A_ITALIC. --- include/wincurs.h | 3 +++ win/curses/cursmisc.c | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/wincurs.h b/include/wincurs.h index 420af1292..c544e4244 100644 --- a/include/wincurs.h +++ b/include/wincurs.h @@ -46,6 +46,9 @@ extern WINDOW *activemenu; /* curses window for menu requesting a #if !defined(A_RIGHTLINE) && defined(A_RIGHT) #define A_RIGHTLINE A_RIGHT #endif +#ifndef A_ITALIC +#define A_ITALIC A_UNDERLINE +#endif typedef enum orient_type { diff --git a/win/curses/cursmisc.c b/win/curses/cursmisc.c index 9d722be35..2e3f3bd42 100644 --- a/win/curses/cursmisc.c +++ b/win/curses/cursmisc.c @@ -12,10 +12,6 @@ #include -#ifndef A_ITALIC -#define A_ITALIC A_UNDERLINE -#endif - /* Misc. curses interface functions */ /* Private declarations */