From b85a31415e8d68d0d46a105b1033a92669224682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 8 Sep 2020 13:59:30 +0200 Subject: Avoid checking of undefined macros These feature macros are either define or not defined at all at the configure step. --- RichString.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RichString.c') diff --git a/RichString.c b/RichString.c index b97e34e5..661b765d 100644 --- a/RichString.c +++ b/RichString.c @@ -70,7 +70,7 @@ int RichString_findChar(RichString* this, char c, int start) { return -1; } -#else +#else /* HAVE_LIBNCURSESW */ static inline void RichString_writeFrom(RichString* this, int attrs, const char* data_c, int from, int len) { int newLen = from + len; @@ -99,7 +99,7 @@ int RichString_findChar(RichString* this, char c, int start) { return -1; } -#endif +#endif /* HAVE_LIBNCURSESW */ void RichString_prune(RichString* this) { if (this->chlen > RICHSTRING_MAXLEN) -- cgit v1.2.3