summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-04 06:45:33 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-04 06:45:33 +0200
commit93e0d7027a7672be0cfb4ac7ea2b09f921f31a05 (patch)
treeca1f7120b83c9927adfc6dd4d9fc8d19a2b204be
parent5900b0708a42b8b6e3ebef4e08f4ca4c6629bf7b (diff)
downloadnncmpp-93e0d7027a7672be0cfb4ac7ea2b09f921f31a05.tar.gz
nncmpp-93e0d7027a7672be0cfb4ac7ea2b09f921f31a05.tar.xz
nncmpp-93e0d7027a7672be0cfb4ac7ea2b09f921f31a05.zip
Fix build on systems without A_ITALIC
Unfortunately, this font style doesn't work in X11 either in that case.
m---------liberty0
-rw-r--r--nncmpp.c4
2 files changed, 4 insertions, 0 deletions
diff --git a/liberty b/liberty
-Subproject 717c30120790e5b1d8b11231996f70f30a1dada
+Subproject 4c2874649d4b1d2414793d60915d309f0bf6711
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;
}