From 93e0d7027a7672be0cfb4ac7ea2b09f921f31a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 4 Jul 2023 06:45:33 +0200 Subject: [PATCH] Fix build on systems without A_ITALIC Unfortunately, this font style doesn't work in X11 either in that case. --- liberty | 2 +- nncmpp.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/liberty b/liberty index 717c301..4c28746 160000 --- a/liberty +++ b/liberty @@ -1 +1 @@ -Subproject commit 717c30120790e5b1d8b11231996f70f30a1dada8 +Subproject commit 4c2874649d4b1d2414793d60915d309f0bf67117 diff --git a/nncmpp.c b/nncmpp.c index efe3366..db30cd2 100644 --- a/nncmpp.c +++ b/nncmpp.c @@ -4194,7 +4194,11 @@ info_tab_format_decode_toggle (char c) case '\x01': return A_BOLD; case '\x02': +#ifdef A_ITALIC return A_ITALIC; +#else + return A_UNDERLINE; +#endif default: return 0; }